This commit is contained in:
GukSang.Jin
2026-05-19 17:14:29 +08:00
parent b80edaea78
commit 72fac0e41b
3 changed files with 7 additions and 3 deletions

View File

@@ -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();
});
}