Exemplo n.º 1
0
 private void OnUpdateAvailable()
 {
     if (MainWindowInstance != null && MainWindowInstance.CanPerformUpdate())
     {
         MainWindowInstance.ForceClose();
     }
 }
 private void OnUpdateAvailable()
 {
     if (MainWindowInstance != null && !bIsClosing && MainWindowInstance.CanPerformUpdate())
     {
         bIsClosing = true;
         MainWindowInstance.ForceClose();
     }
 }
 private void OnUpdateAvailable(UpdateType Type)
 {
     if (MainWindowInstance != null && !bIsClosing)
     {
         if (Type == UpdateType.UserInitiated || MainWindowInstance.CanPerformUpdate())
         {
             bIsClosing = true;
             MainWindowInstance.ForceClose();
         }
     }
 }