コード例 #1
0
ファイル: Program.cs プロジェクト: Earthmark/RenderTest
        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();
        }