private void OnShewWinPeripheralsConfig(NotificationMessageAction<PeripheralsSettingParam> info)
        {
            PeripheralsSettingParam dataInfo = info.Target as PeripheralsSettingParam;
            Window_PeripheralsConfig winPeripheralConfig = new Window_PeripheralsConfig(dataInfo);
            winPeripheralConfig.Owner = Application.Current.MainWindow;
            winPeripheralConfig.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;

            if (winPeripheralConfig.ShowDialog() == true)
            {
                PeripheralsSettingParam data = winPeripheralConfig.GetPeripheralConfig();
                info.Execute(data);
            }
        }
예제 #2
0
 private void OnShewWinPeripheralsConfig(NotificationMessageAction<PeripheralsSettingParam> info)
 {
     PeripheralsSettingParam dataInfo = info.Target as PeripheralsSettingParam;
     Window_PeripheralsConfig winPeripheralConfig = new Window_PeripheralsConfig(dataInfo);
     bool? res = ShowInCenterParentWithRes(winPeripheralConfig);
     if (res == true)
     {
         PeripheralsSettingParam data = winPeripheralConfig.GetPeripheralConfig();
         info.Execute(data);
     }
 }