private void UpdateReadOnlyState() { mReadOnlyContext.ApplyTo(new Control[] { nameTextBox, stateComboBox, displayOrderNumericUpDown, descriptionTextBox, }); }
private void UpdateReadOnlyState() { projectComboBox.Enabled = mReadOnlyContext.Enabled && projectComboBox.Items.Count > 1; milestoneComboBox.Enabled = mReadOnlyContext.Enabled && milestoneComboBox.Items.Count > 0; mReadOnlyContext.ApplyTo(new Control[] { summaryTextBox, reportedByComboBox, typeComboBox, severityComboBox, stateComboBox, assignedToComboBox, priorityComboBox, descriptionTextBox, }); }