Exemple #1
0
            public static void Update(OuiLoggedProgress progress, Entry version = null)
            {
                if (version == null)
                {
                    version = Newest;
                }
                if (version == null)
                {
                    // Exit immediately.
                    progress.Init <OuiModOptions>(Dialog.Clean("updater_title"), new Task(() => { }), 1).Progress = 1;
                    progress.LogLine("No update - cancelling.");
                    return;
                }

                progress.Init <OuiHelper_Shutdown>(Dialog.Clean("updater_title"), new Task(() => _UpdateStart(progress, version)), 0);
            }
            public static void Update(OuiLoggedProgress progress, Entry version = null)
            {
                if (!Flags.SupportUpdatingEverest)
                {
                    progress.Init <OuiModOptions>(Dialog.Clean("updater_title"), new Task(() => { }), 1).Progress = 1;
                    progress.LogLine(Dialog.Clean("EVERESTUPDATER_NOTSUPPORTED"));
                    return;
                }

                if (version == null)
                {
                    version = Newest;
                }
                if (version == null)
                {
                    // Exit immediately.
                    progress.Init <OuiModOptions>(Dialog.Clean("updater_title"), new Task(() => { }), 1).Progress = 1;
                    progress.LogLine(Dialog.Clean("EVERESTUPDATER_NOUPDATE"));
                    return;
                }

                progress.Init <OuiHelper_Shutdown>(Dialog.Clean("updater_title"), new Task(() => _UpdateStart(progress, version)), 0);
            }