示例#1
0
        static void Main(string[] args)
        {
            SystemClass system;
            bool result;

            system = new SystemClass();
            try
            {
                result = system.Initialize();
                if (result)
                    system.Run();
            }
            finally
            {
                system.Shutdown();
            }
        }
示例#2
0
        private void ShutdownWindows()
        {
            if (MainForm != null)
                MainForm.Dispose();

            MainForm = null;
            ApplicationHandle = null;
        }
示例#3
0
        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();
        }