添加页面

This commit is contained in:
2026-05-15 09:04:36 +08:00
parent bd871ee6c5
commit 8ef4a199c4
3 changed files with 146 additions and 22 deletions

View File

@@ -65,7 +65,13 @@ namespace TabletTester2025.ViewModels
OpenCalibrationCommand = new AsyncRelayCommand(() => { MessageBox.Show("校准功能待实现"); return Task.CompletedTask; });
// 跳转到 PlcDataPage 页面
ShowDataCommand = new AsyncRelayCommand(() => { new ShowData().ShowDialog(); return Task.CompletedTask; });
ShowDataCommand = new AsyncRelayCommand(async () =>
{
// 用你项目里已有的PLC实例假设叫 _plcClient
var window = new ShowData(_plc);
window.ShowDialog();
});
}
private async Task ConnectToPlc()