示例#1
0
 private void NeedsUpdate(object sender, EventArgs args)
 {
     if (this.Dispatcher.CheckAccess())
     {
         UpdateNotification updateNotification =
             new UpdateNotification();
         updateNotification.MSIURL = MSI_URL;
         updateNotification.ShowDialog();
     }
     else
     {
         this.Dispatcher.Invoke((Action)(() =>
                                         this.NeedsUpdate(sender, args)));
     }
 }
示例#2
0
 private void NeedsUpdate(object sender, EventArgs args)
 {
     if (this.Dispatcher.CheckAccess()) {
         UpdateNotification updateNotification =
             new UpdateNotification();
         updateNotification.MSIURL = MSI_URL;
         updateNotification.ShowDialog();
     }
     else
         this.Dispatcher.Invoke((Action)(() =>
             this.NeedsUpdate(sender, args)));
 }