public bool ClickDropDown() { if (_dropDownControl.DropState == EDropState.Closing || _dropDownControl.DropState == EDropState.Dropping) { return(false); } if (_dropDownControl.DropState == EDropState.Closed) { _dropDownControl.OpenDropDown(); if (DropDownAbriu != null) { DropDownAbriu.Invoke(this, new EventArgs()); } return(true); } if (_dropDownControl.DropState == EDropState.Dropped) { _dropDownControl.CloseDropDown(); if (DropDownFechou != null) { DropDownFechou.Invoke(this, new EventArgs()); } return(true); } return(true); }
public void FecharDropDown() { if (_dropDownControl.DropState == EDropState.Closing || _dropDownControl.DropState == EDropState.Dropping) { return; } _dropDownControl.CloseDropDown(); if (DropDownFechou != null) { DropDownFechou.Invoke(this, new EventArgs()); } }