private void button_standbyCtrl_Click(object sender, RoutedEventArgs e) { SetAppCancelWindow dlg = new SetAppCancelWindow(); dlg.processList = this.ngProcessList; dlg.ngMin = this.ngMin; dlg.ngFileStreaming = this.ngFileStreaming; dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.ShowDialog(); this.ngProcessList = dlg.processList; this.ngMin = dlg.ngMin; this.ngFileStreaming = dlg.ngFileStreaming; }
private void button_standbyCtrl_Click(object sender, RoutedEventArgs e) { var dlg = new SetAppCancelWindow(); dlg.Owner = CommonUtil.GetTopWindow(this); dlg.processList = this.ngProcessList.ToList(); dlg.ngMin = this.ngMin; dlg.ngUsePC = this.ngUsePC; dlg.ngUsePCMin = this.ngUsePCMin; dlg.ngFileStreaming = this.ngFileStreaming; dlg.ngShareFile = this.ngShareFile; if (dlg.ShowDialog() == true) { this.ngProcessList = dlg.processList.ToList(); this.ngMin = dlg.ngMin; this.ngUsePC = dlg.ngUsePC; this.ngUsePCMin = dlg.ngUsePCMin; this.ngFileStreaming = dlg.ngFileStreaming; this.ngShareFile = dlg.ngShareFile; } }
private void button_standbyCtrl_Click(object sender, RoutedEventArgs e) { SetAppCancelWindow dlg = new SetAppCancelWindow(); dlg.processList = this.ngProcessList; dlg.ngMin = this.ngMin; dlg.ngUsePC = this.ngUsePC; dlg.ngUsePCMin = this.ngUsePCMin; dlg.ngFileStreaming = this.ngFileStreaming; dlg.ngShareFile = this.ngShareFile; dlg.Owner = (Window)PresentationSource.FromVisual(this).RootVisual; dlg.ShowDialog(); this.ngProcessList = dlg.processList; this.ngMin = dlg.ngMin; this.ngUsePC = dlg.ngUsePC; this.ngUsePCMin = dlg.ngUsePCMin; this.ngFileStreaming = dlg.ngFileStreaming; this.ngShareFile = dlg.ngShareFile; }