/// <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(); }); }
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(); }); }