Пример #1
0
        private void CheckForUpdate(bool silent)
        {
            string version;

            if ((version = UpdateAvailable.IsUpdateAvailable(true)) != null)
            {
                UpdateAvailable form = new UpdateAvailable(version);
                DialogResult    r    = form.ShowDialog();
                if (r == DialogResult.OK)
                {
                    this.Close();       // install has started so quit
                }
            }
            else if (!silent)
            {
                // Desktop.Properties.Resources.DialogTitle
                MessageBox.Show("There are no updates available.");
            }
        }
Пример #2
0
 private void CheckForUpdate(bool silent)
 {
     string version;
     if ((version = UpdateAvailable.IsUpdateAvailable(true)) != null)
     {
         UpdateAvailable form = new UpdateAvailable(version);
         DialogResult r = form.ShowDialog();
         if (r == DialogResult.OK)
         {
             this.Close();       // install has started so quit
         }
     }
     else if (!silent)
     {
         // Desktop.Properties.Resources.DialogTitle
         MessageBox.Show("There are no updates available.");
     }
 }