Esempio n. 1
0
        public static void CheckUpdatesAtRuntime()
        {
            var model      = new Updater();
            var view       = new LaunchView();
            var controller = new LauncherController(view, model);

            if (!controller.CheckForUpdates())
            {
                MessageBox.Show(Resources.NoUpdatesFound, Resources.NoUpdatesFoundTitle, MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            if (MessageBox.Show(Resources.UpdateAvailableInform, Resources.UpdateAvailableTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.No)
            {
                return;
            }

            view.Show();
        }