private static void Main(string[] args) { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); mainForm = new UI.MainForm(); Application.Idle += mainForm.HandleIdle; Application.Run(mainForm); Application.Idle -= mainForm.HandleIdle; } catch (Exception ex) { HandleFatalError(ex); #if DEBUG throw ex; #endif } }
public EngineManager(UI.MainForm owner) { this.mainForm = owner; }