private void Ctrl_ValueChanged(object sender, DropDownValueChangedEventArgs e) { if (this.ValueChanged != null) { this.ValueChanged(this, e); } }
private void Ctrl_FinishEditing(object sender, DropDownValueChangedEventArgs e) { if (this.FinishEditing != null) { this.FinishEditing(this, e); } _control.FinishEditing -= new DropDownValueChangedEventHandler(Ctrl_FinishEditing); _control.ValueChanged -= new DropDownValueChangedEventHandler(Ctrl_ValueChanged); }
private void DropDown_FinishEditing(object sender, DropDownValueChangedEventArgs e) { if (e.Value != null) { SetValue <long>(e.Value as ILookupItem <long>); } if (this.FinishEditing != null) { this.FinishEditing(this, e); } _dropDownControl.FinishEditing -= new DropDownValueChangedEventHandler(DropDown_FinishEditing); _dropDownControl.ValueChanged -= new DropDownValueChangedEventHandler(DropDown_ValueChanged); _dropDownHelper.CloseDropDown(); }