删除多余代码
This commit is contained in:
@@ -196,16 +196,7 @@ namespace 头罩视野.Views
|
||||
await _modbusMaster.WriteSingleCoilAsync(1, 11, false);
|
||||
//System.Diagnostics.Debug.WriteLine("正传end");
|
||||
}
|
||||
// 在 PageTest 类里面
|
||||
private RecordDate? GetRecordDatePage()
|
||||
{
|
||||
// 拿到主窗口
|
||||
var mainWin = Application.Current.MainWindow;
|
||||
// 假设你全局切换页面的 Frame 名字叫 MainFrame
|
||||
var frame = mainWin.FindName("MainFrame") as Frame;
|
||||
// 返回 RecordDate 实例
|
||||
return frame?.Content as RecordDate;
|
||||
}
|
||||
|
||||
//停止btn
|
||||
private void Button_Click_Stop(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
@@ -38,17 +38,7 @@ namespace 头罩视野.Views
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
//#region 2. 清除表格数据
|
||||
//private void btnClear_Click(object sender, RoutedEventArgs e)
|
||||
//{
|
||||
// // 确认清除
|
||||
// if (MessageBox.Show("确定要清除所有记录吗?", "确认", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
|
||||
// {
|
||||
// TestDataStore.Records.Clear();
|
||||
// RecordDataGrid.ItemsSource = null;
|
||||
// RecordDataGrid.ItemsSource = TestDataStore.Records;
|
||||
// }
|
||||
//}
|
||||
|
||||
|
||||
//清除
|
||||
private void btnClear_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user