Example #1
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     _currentWindow = null;
     if (_isSentCommandToUpdater == false)
     {
         Updater.Cancel();
     }
 }
Example #2
0
 public static void ShowWindow(Appcast appcast)
 {
     Application.Current.Dispatcher.Invoke(() =>
     {
         _currentWindow       = new UpdateAvailableDialog(appcast);
         _currentWindow.Owner = Application.Current.MainWindow;
         _currentWindow.Show();
     });
 }
Example #3
0
 public static void HideWindow()
 {
     Application.Current.Dispatcher.Invoke(() =>
     {
         if (_currentWindow != null)
         {
             _currentWindow.Close();
         }
         _currentWindow = null;
     });
 }
Example #4
0
 private static void Updater_NewUpdateAvailable(Appcast appcast)
 {
     UpdateAvailableDialog.ShowWindow(appcast);
 }
Example #5
0
 private static void HideWindows()
 {
     CheckingForUpdateWindow.HideWindow();
     UpdateAvailableDialog.HideWindow();
     DownloadProgressWindow.HideWindow();
 }