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