private void SetEnabled(IEnumerable<Control> controls, bool value) { foreach (var control in controls) { control.Enabled = value; } }