private void VolumeCheckBoxClicked(object sender, EventArgs e) { MenuCheckBox buttonSender = (MenuCheckBox)sender; buttonSender.Change(); GameSettings._Volume = buttonSender.IsChecked; GameSettings.SaveSettings(); }
private void FullScreenCheckBoxClicked(object sender, EventArgs e) { MenuCheckBox buttonSender = (MenuCheckBox)sender; buttonSender.Change(); GameSettings._FullScreen = buttonSender.IsChecked; GameSettings.SaveSettings(); GlobalDevices._GraphicsDeviceManager.IsFullScreen = GameSettings._FullScreen; GlobalDevices._GraphicsDeviceManager.ApplyChanges(); }