private void _checkForNewVersionMenuItem_Click(object sender, EventArgs e)
 {
     if (ApplicationUpdateSupport.BloomUpdateInProgress)
     {
         //enhance: ideally, what this would do is show a toast of whatever it is squirrel is doing: checking, downloading, waiting for a restart.
         MessageBox.Show(this,
                         LocalizationManager.GetString("CollectionTab.UpdateCheckInProgress",
                                                       "Bloom is already working on checking for updates."));
         return;
     }
     if (Debugger.IsAttached)
     {
         MessageBox.Show(this, "Sorry, you cannot check for updates from the debugger.");
     }
     else if (InstallerSupport.SharedByAllUsers())
     {
         MessageBox.Show(this, LocalizationManager.GetString("CollectionTab.AdminManagesUpdates",
                                                             "Your system administrator manages Bloom updates for this computer."));
     }
     else
     {
         ApplicationUpdateSupport.CheckForASquirrelUpdate(ApplicationUpdateSupport.BloomUpdateMessageVerbosity.Verbose,
                                                          newInstallDir => RestartBloom(newInstallDir), Settings.Default.AutoUpdate);
     }
 }
 private void _applicationUpdateCheckTimer_Tick(object sender, EventArgs e)
 {
     _applicationUpdateCheckTimer.Enabled = false;
     if (!Debugger.IsAttached)
     {
         ApplicationUpdateSupport.CheckForASquirrelUpdate(ApplicationUpdateSupport.BloomUpdateMessageVerbosity.Quiet, newInstallDir => RestartBloom(newInstallDir), Settings.Default.AutoUpdate);
     }
 }