private void ReadSetting(CheckBox control, string setting) { control.Checked = DebugSettings.GetSetting(setting); }