コード例 #1
0
 private void Ctrl_ValueChanged(object sender, DropDownValueChangedEventArgs e)
 {
     if (this.ValueChanged != null)
     {
         this.ValueChanged(this, e);
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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();
        }