public void ShowSettings(bool blnShow) { if (blnShow) { if (m_settings == null) { m_settings = new frmSettings(this, m_graphics); XGControl.BkgColor = Color.Black; XGControl.ControlColor = Color.Gray; XGControl.ForeColor = Color.White; //XnaGUIManager.Activate(true); } } else { if (m_settings != null) { XnaGUIManager.Controls.Remove(m_settings); m_settings = null; } } }