Exemplo n.º 1
0
        protected override void OnMouseDoubleClick(MouseEventArgs e)
        {
            base.OnMouseDoubleClick(e);

            if (Ribbon.RectangleToScreen(Ribbon.OrbBounds).Contains(PointToScreen(e.Location)))
            {
                Ribbon.OnOrbDoubleClicked(EventArgs.Empty);
            }
        }
Exemplo n.º 2
0
        protected override void OnMouseClick(MouseEventArgs e)
        {
            if (Ribbon.RectangleToScreen(Ribbon.OrbBounds).Contains(PointToScreen(e.Location)))
            {
                Ribbon.OnOrbClicked(EventArgs.Empty);
                //Steve - if click time is within the double click time after the drop down was shown, then this is a double click
                if (DateTime.Compare(DateTime.Now, OpenedTime.AddMilliseconds(SystemInformation.DoubleClickTime)) < 0)
                {
                    Ribbon.OnOrbDoubleClicked(EventArgs.Empty);
                }
            }

            base.OnMouseClick(e);
        }