protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); AppDomain.CurrentDomain.UnhandledException += (sender, eargs) => HandleExcObject(eargs.ExceptionObject); AppCoordinator appcoord = new AppCoordinator(); }
public AppCoordinator() { theAppCoordinator = this; ConfigureLogger(); MigrateSettingsIfNeeded(); ParseCommandLine(); var dwMode = UtilityCode.WinSetErrorMode.SetErrorMode(UtilityCode.WinSetErrorMode.ErrorModes.SEM_NOGPFAULTERRORBOX); UtilityCode.WinSetErrorMode.SetErrorMode(dwMode | UtilityCode.WinSetErrorMode.ErrorModes.SEM_NOGPFAULTERRORBOX); BeginMonitoringGame(); ShowMainWindow(); BeginMonitoringServers(); }
private void LauncherProc_Exited(object sender, EventArgs e) { Process p = (Process)sender; AppCoordinator.RemoveObsoleteProcess(p.Id); }