Пример #1
0
 private void btnDiagnostics_Click(object sender, RoutedEventArgs e)
 {
     if (_diagnosticsWindow == null)
     {
         _diagnosticsWindow          = new DiagnosticsWindow(_viewModel.GetDiagnosticWindowViewModel());
         _diagnosticsWindow.Closing += _diagnosticsWindow_Closing;
     }
     _diagnosticsWindow.Show();
 }
Пример #2
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (_diagnosticsWindow != null)
     {
         _diagnosticsWindow.Close();
         _diagnosticsWindow = null;
     }
     Properties.Settings.Default.ShowHelpAtStart = chkShowStartup.IsChecked.Value;
     Properties.Settings.Default.Save();
 }
Пример #3
0
 void _diagnosticsWindow_Closing(object sender, CancelEventArgs e)
 {
     _diagnosticsWindow = null;
 }