Пример #1
0
 public AssaultWingProgram()
 {
     Log.Write("Assault Wing started");
     Application.ThreadException += ThreadExceptionHandler;
     Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     _form = new GameForm(g_commandLineOptions);
 }
Пример #2
0
 public void Dispose()
 {
     if (_form != null) _form.Dispose();
     _form = null;
     Application.ThreadException -= ThreadExceptionHandler;
 }