private void pickerLauncherTextBox_SelectedValueChanged(object sender, EventArgs e) { if (this.Checked && !CheckedPickerLauncherTextBox.isInitializedValueOfSelectedValue(this.pickerLauncherTextBox.SelectedValue)) { this.OnSelectedValueChanged(EventArgs.Empty); } }
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); } }
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()); }