示例#1
0
 private void OnLauncherDownloadFinished(object sender, ModuleInstallationFinishedArgs e)
 {
     if (LauncherDownloadFinished != null)
     {
         LauncherDownloadFinished(sender, e);
     }
 }
示例#2
0
 /// <summary>
 /// Passes the internal event in the protocol handler to the outward-facing
 /// event.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">E.</param>
 private void OnModuleInstallationFinished(object sender, ModuleInstallationFinishedArgs e)
 {
     if (GameDownloadFinished != null)
     {
         GameDownloadFinished(sender, e);
     }
 }
示例#3
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();
                }
            });
        }
示例#4
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();
            });
        }
示例#5
0
 private void OnLauncherDownloadFinished(object sender, ModuleInstallationFinishedArgs e)
 {
     this.LauncherDownloadFinished?.Invoke(sender, e);
 }
示例#6
0
 /// <summary>
 /// Passes the internal event in the protocol handler to the outward-facing
 /// event.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="e">E.</param>
 private void OnModuleInstallationFinished(object sender, ModuleInstallationFinishedArgs e)
 {
     DownloadFinished?.Invoke(sender, e);
 }