Esempio n. 1
0
        private void OnCloseAbout(object parameter)
        {
            Log.Instance.LogInfo(string.Format("AboutViewModel.OnCloseAbout {0}", parameter));

            AboutDialog w = parameter as AboutDialog;

            if (w != null)
            {
                w.Close();
            }
        }
Esempio n. 2
0
        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();
            }
        }
Esempio n. 3
0
 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();
     }
 }
Esempio n. 4
0
 public void Dispose() => _dialog?.Close();