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();
}