页面逻辑调整

This commit is contained in:
2026-05-08 17:17:33 +08:00
parent d349668966
commit e3ef1206a9
2 changed files with 15 additions and 16 deletions

View File

@@ -415,9 +415,22 @@ namespace 头罩视野.Views
TestDataStore.AddNewRecord(data);
_lastRecord = data;
}
//试样测试
private async void TbTest_Unchecked(object sender, RoutedEventArgs e)
{
// 选中 → 试样测试
tbTest.Content = "空白测试";
GlobalData.CurrentMode = "空白测试";
tbTest.Background = System.Windows.Media.Brushes.LightSkyBlue;
await _modbusMaster.WriteSingleCoilAsync(1, 41, true);
}
private async void TbTest_Checked(object sender, RoutedEventArgs e)
{
// 取消 → 空白测试
@@ -576,21 +589,7 @@ namespace 头罩视野.Views
ma.BtnClickFunction(Function.ButtonType., 103);
}
//试样测试
private async void TbTest_Checked(object sender, RoutedEventArgs e)
{
// 选中 → 试样测试
tbTest.Content = "空白测试";
GlobalData.CurrentMode = "空白测试";
tbTest.Background = System.Windows.Media.Brushes.LightSkyBlue;
System.Diagnostics.Debug.WriteLine($"1232312312");
await _modbusMaster.WriteSingleCoilAsync(1, 41, true);
}
// 蓝色亮(蓝色)
private void LedOn(Ellipse led)