添加页面
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user