测试
This commit is contained in:
@@ -85,10 +85,20 @@ namespace 头罩视野.Views
|
||||
|
||||
private void Page_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
//进入页面是否要保留原来的数据????,
|
||||
// 判断连接
|
||||
if (!ModbusHelper.IsConnected)
|
||||
{
|
||||
MessageBox.Show("未连接");
|
||||
return;
|
||||
}
|
||||
|
||||
// 获取客户端
|
||||
var client = ModbusHelper.TcpClient;
|
||||
//进入页面是否要保留原来的数据????,
|
||||
RecordDataGrid.ItemsSource = null;
|
||||
RecordDataGrid.ItemsSource = TestDataStore.Records;
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void GoHome(object s, RoutedEventArgs e) => NavigationService.Content = null;
|
||||
|
||||
Reference in New Issue
Block a user