ComponentFactory.Krypton.Toolkit.MenuItemController.MouseUp C# (CSharp) Method

MouseUp() public method

Mouse button has been released in the view.
public MouseUp ( Control c, Point pt, MouseButtons button ) : void
c System.Windows.Forms.Control Reference to the source control instance.
pt Point Mouse position relative to control.
button MouseButtons Mouse button released.
return void
        public virtual void MouseUp(Control c, Point pt, MouseButtons button)
        {
            // Only interested in processing if the menu item is enabled
            if (_menuItem.ItemEnabled)
            {
                // Is mouse in the area of the item for indicating a sub menu
                if (_menuItem.PointInSubMenu(pt))
                    _menuItem.ShowSubMenu(false);
                else
                    PressMenuItem();
            }
        }