Esempio n. 1
0
 private void UpdateReadOnlyState()
 {
     mReadOnlyContext.ApplyTo(new Control[] {
         nameTextBox,
         stateComboBox,
         displayOrderNumericUpDown,
         descriptionTextBox,
     });
 }
Esempio n. 2
0
        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,
            });
        }