更新
This commit is contained in:
@@ -61,6 +61,7 @@ namespace TabletTester2025.ViewModels
|
||||
OpenSettingsCommand = new AsyncRelayCommand(() =>
|
||||
{
|
||||
var window = new SettingsWindow();
|
||||
window.Owner = Application.Current.MainWindow;
|
||||
if (window.ShowDialog() == true)
|
||||
Tester.ApplyPharmaDefaults();
|
||||
return Task.CompletedTask;
|
||||
@@ -73,6 +74,7 @@ namespace TabletTester2025.ViewModels
|
||||
{
|
||||
// 用你项目里已有的PLC实例(假设叫 _plcClient)
|
||||
var window = new ShowData(_plc);
|
||||
window.Owner = Application.Current.MainWindow;
|
||||
window.ShowDialog();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user