private void WriteSetting(CheckBox control, string setting) { DebugSettings.SetSetting(setting, control.Checked); }