Azmyth.XNA.frmSettings.btnApply_Clicked C# (CSharp) Method

btnApply_Clicked() public method

public btnApply_Clicked ( XGControl sender ) : void
sender XGControl
return void
        public void btnApply_Clicked(XGControl sender)
        {
            Close();
            m_graphicsManager.IsFullScreen = chkFullScreen.Checked;

            m_graphicsManager.PreferredBackBufferWidth = int.Parse(lstResolutions.SelectedItem.Value.ToString().Split('x')[0].Trim());
            m_graphicsManager.PreferredBackBufferHeight = int.Parse(lstResolutions.SelectedItem.Value.ToString().Split('x')[1].Trim());
            m_graphicsManager.ApplyChanges();

            Show();
        }