Esempio n. 1
0
        public void ProcessNewVersionAvailable(string newVersion)
        {
            DialogResult dlgRes   = DialogResult.None;
            bool         addCheck = false;

            dlgRes = MessageDisplay.QueryEx(
                Translator.Translate("TXT_NOTIFYUPDATE", newVersion),
                Translator.TranslatedAppName,
                Translator.Translate("TXT_DISABLEAUTODOWNLOADS"),
                ref addCheck,
                MessageBoxIcon.Question);

            if (addCheck)
            {
                AppConfig.AllowAutomaticUpdates = false;
            }

            if (dlgRes == DialogResult.Yes)
            {
                Logger.LogInfo("Started update process to version: {0}", newVersion);
                new UpdateWaitForm(newVersion).ShowDialog("TXT_WAITDOWNLOADUPDATE");
            }
        }