示例#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;
 }