Beispiel #1
0
        /// <summary>
        /// Starts the launcher update process when its files have finished downloading.
        /// </summary>
        private static void OnLauncherDownloadFinished(object sender, EventArgs e)
        {
            Application.Invoke((o, args) =>
            {
                ProcessStartInfo script = LauncherHandler.CreateUpdateScript();
                Process.Start(script);

                Application.Quit();
            });
        }
Beispiel #2
0
        protected void OnLauncherDownloadFinished(object sender, ModuleInstallationFinishedArgs e)
        {
            Application.Invoke(delegate
            {
                if (e.Module == EModule.Launcher)
                {
                    ProcessStartInfo script = LauncherHandler.CreateUpdateScript();

                    Process.Start(script);
                    Application.Quit();
                }
            });
        }
Beispiel #3
0
        /// <summary>
        /// Starts the launcher update process when its files have finished downloading.
        /// </summary>
        private static void OnLauncherDownloadFinished(object sender, ModuleInstallationFinishedArgs e)
        {
            if (e.Module != EModule.Launcher)
            {
                return;
            }

            Application.Invoke((o, args) =>
            {
                ProcessStartInfo script = LauncherHandler.CreateUpdateScript();
                Process.Start(script);

                Application.Quit();
            });
        }