Exemplo n.º 1
0
        public override void OnMouseDoubleClick(MouseEventArgs e)
        {
            if (!Enabled)
            {
                return;
            }
            _lastClickTime = 0;
            _buttons       = MouseButtons.None;

            if (ActiveControl != null && ActiveControl.IsMouseOver(CMain.MPoint) && ActiveControl != this)
            {
                if (ActiveControl == _clickedControl)
                {
                    ActiveControl.OnMouseDoubleClick(e);
                }
                else
                {
                    ActiveControl.OnMouseClick(e);
                }
            }
            else
            {
                if (ActiveControl == _clickedControl)
                {
                    base.OnMouseDoubleClick(e);
                }
                else
                {
                    base.OnMouseClick(e);
                }
            }
        }
Exemplo n.º 2
0
        public override void OnMouseDoubleClick(MouseEventArgs e)
        {
            if (!Enabled)
            {
                return;
            }
            LastClickTime = 0;
            Buttons       = MouseButtons.None;

            if (ActiveControl != null && ActiveControl.IsMouseOver(e.Location) && ActiveControl != this)
            {
                if (ActiveControl == ClickedControl)
                {
                    ActiveControl.OnMouseDoubleClick(e);
                }
                else
                {
                    ActiveControl.OnMouseClick(e);
                }
            }
            else
            {
                if (ActiveControl == ClickedControl)
                {
                    base.OnMouseDoubleClick(e);
                }
                else
                {
                    base.OnMouseClick(e);
                }
            }
        }