private void OnLauncherDownloadFinished(object sender, ModuleInstallationFinishedArgs e) { if (LauncherDownloadFinished != null) { LauncherDownloadFinished(sender, e); } }
/// <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); } }
protected void OnLauncherDownloadFinished(object sender, ModuleInstallationFinishedArgs e) { Application.Invoke(delegate { if (e.Module == EModule.Launcher) { ProcessStartInfo script = LauncherHandler.CreateUpdateScript(); Process.Start(script); Application.Quit(); } }); }
/// <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(); }); }
private void OnLauncherDownloadFinished(object sender, ModuleInstallationFinishedArgs e) { this.LauncherDownloadFinished?.Invoke(sender, e); }
/// <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); }