Пример #1
0
        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);
        }
Пример #2
0
        public void AbrirDropDown()
        {
            if (_dropDownControl.DropState == EDropState.Closing ||
                _dropDownControl.DropState == EDropState.Dropping)
            {
                return;
            }

            _dropDownControl.OpenDropDown();
            if (DropDownAbriu != null)
            {
                DropDownAbriu.Invoke(this, new EventArgs());
            }

            if (_timeOut > 0)
            {
                _timer.Start();
            }
        }