コード例 #1
0
 private void pickerLauncherTextBox_SelectedValueChanged(object sender, EventArgs e)
 {
     if (this.Checked && !CheckedPickerLauncherTextBox.isInitializedValueOfSelectedValue(this.pickerLauncherTextBox.SelectedValue))
     {
         this.OnSelectedValueChanged(EventArgs.Empty);
     }
 }
コード例 #2
0
        private void checkBox_CheckedChanged(object sender, EventArgs e)
        {
            bool @checked = this.checkBox.Checked;

            this.pickerLauncherTextBox.Enabled = @checked;
            this.OnCheckedChanged(EventArgs.Empty);
            if (!@checked || !CheckedPickerLauncherTextBox.isInitializedValueOfSelectedValue(this.pickerLauncherTextBox.SelectedValue))
            {
                this.OnSelectedValueChanged(EventArgs.Empty);
            }
        }
コード例 #3
0
        protected override UIValidationError[] GetValidationErrors()
        {
            List <UIValidationError> list = new List <UIValidationError>();

            if (this.checkBox.Checked && CheckedPickerLauncherTextBox.isInitializedValueOfSelectedValue(this.SelectedValue))
            {
                UIValidationError item = new UIValidationError(Strings.SelectValueErrorMessage, this.pickerLauncherTextBox);
                list.Add(item);
            }
            return(list.ToArray());
        }