Ejemplo n.º 1
0
        public bool Initialize()
        {
            if (Configuration == null)
            {
                Configuration = new SystemConfiguration();
            }

            InitializeWindows();

            if (Input == null)
            {
                Input = new InputClass();
                Input.Initialize();
            }

            if (Graphics == null)
            {
                Graphics = new GraphicsClass();
                if (!Graphics.Initialize(Configuration, MainForm.Handle))
                {
                    return(false);
                }
            }

            return(true);
        }
Ejemplo n.º 2
0
        public void Shutdown()
        {
            if (Graphics != null)
            {
                Graphics.Shutdown();
                Graphics = null;
            }

            if (Input != null)
            {
                Input = null;
            }

            ShutdownWindows();
        }
Ejemplo n.º 3
0
        public bool Initialize()
        {
            if(Configuration == null)
                Configuration = new SystemConfiguration();

            InitializeWindows();

            if (Input == null)
            {
                Input = new InputClass();
                Input.Initialize();
            }

            if (Graphics == null)
            {
                Graphics = new GraphicsClass();
                if (!Graphics.Initialize(Configuration, MainForm.Handle))
                    return false;
            }

            return true;
        }