Example #1
0
 static void ShowUpdateMessageBox()
 {
     msgOpen = true;
     if (Popup.YesNo("New version found. Would you like to update?", "Update?"))
     {
         Updater.PerformUpdate();
     }
     msgOpen = false;
 }
Example #2
0
        void forceUpdateBtn_Click(object sender, EventArgs e)
        {
            srv_btnForceUpdate.Enabled = false;
            string msg = "Would you like to force update " + Server.SoftwareName + " now?";

            if (Popup.YesNo(msg, "Force update"))
            {
                SaveChanges();
                Updater.PerformUpdate();
                Dispose();
            }
            else
            {
                srv_btnForceUpdate.Enabled = true;
            }
        }