static void Main(string[] args) { SystemClass system; bool result; system = new SystemClass(); try { result = system.Initialize(); if (result) system.Run(); } finally { system.Shutdown(); } }
private void ShutdownWindows() { if (MainForm != null) MainForm.Dispose(); MainForm = null; ApplicationHandle = null; }
private void InitializeWindows() { if (MainForm != null) return; ApplicationHandle = this; ApplicationName = "Engine"; MainForm = new RenderForm(Configuration.Title) { ClientSize = new Size(Configuration.Width, Configuration.Height), FormBorderStyle = FormBorderStyle.None }; MainForm.Show(); }