Пример #1
0
        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
            }
        }
Пример #2
0
 public EngineManager(UI.MainForm owner)
 {
     this.mainForm = owner;
 }