Beispiel #1
0
 public void Dispose()
 {
     if (this.updateWindow != null)
     {
         this.updateWindow.Close();
         this.updateWindow = null;
     }
 }
Beispiel #2
0
 void PerformUpdate(string downloadUrl, string fileName)
 {
     App.Current.Dispatcher.Invoke(new Action(() =>
     {
         this.updateWindow = new UpdateWindow(downloadUrl, fileName);
         try
         {
             this.updateWindow.Owner = App.Current.BaseMainWindow;
         }
         catch { }
         this.updateWindow.ShowDialog();
     }));
 }