public AssaultWingProgram() { Log.Write("Assault Wing started"); Application.ThreadException += ThreadExceptionHandler; Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); _form = new GameForm(g_commandLineOptions); }
public void Dispose() { if (_form != null) _form.Dispose(); _form = null; Application.ThreadException -= ThreadExceptionHandler; }