public bool Initialize() { // Initialize the system configuration. if (Configuration == null) { Configuration = new SystemConfiguration(); } // Initialize windows api. InitializeWindows(); if (Input == null) { Input = new InputClass(); if (!Input.Initialize(Configuration, MainForm.Handle)) { return(false); } } if (Graphics == null) { Graphics = new GraphicsClass(); if (!Graphics.Initialize(Configuration, MainForm.Handle)) { return(false); } } return(true); }
public void Shutdown() { if (Graphics != null) { Graphics.Shutdown(); Graphics = null; } if (Input != null) { Input.Shutdown(); Input = null; } ShutdownWindows(); }
public bool Initialize() { // Initialize the system configuration. if(Configuration == null) Configuration = new SystemConfiguration(); // Initialize windows api. InitializeWindows(); if (Input == null) { Input = new InputClass(); if (!Input.Initialize(Configuration, MainForm.Handle)) return false; } if (Graphics == null) { Graphics = new GraphicsClass(); if (!Graphics.Initialize(Configuration, MainForm.Handle)) return false; } return true; }