private void OnCloseAbout(object parameter) { Log.Instance.LogInfo(string.Format("AboutViewModel.OnCloseAbout {0}", parameter)); AboutDialog w = parameter as AboutDialog; if (w != null) { w.Close(); } }
private void MnuAppAbout_Click(object sender, RoutedEventArgs e) { DispatcherOperation op1 = Dispatcher.BeginInvoke( DispatcherPriority.Normal, new Action <bool>(SetWindowEnabled), false); try { aboutWindow = new AboutDialog(); aboutWindow.Closed += new EventHandler(AboutWindow_Closed); aboutWindow.ShowDialog(); } catch { MessageBox.Show("Please restart the about window!", "Error", MessageBoxButton.OK, MessageBoxImage.Error); aboutWindow.Close(); } }
public static void CloseAll() { if (cancelJobsDialog != null) { cancelJobsDialog.Close(); } if (retryJobsDialog != null) { retryJobsDialog.Close(); } if (aboutDialog != null) { aboutDialog.Close(); } if (legalNoticesDialog != null) { legalNoticesDialog.Close(); } if (conVpxWizard != null) { conVpxWizard.Close(); } }
public void Dispose() => _dialog?.Close();