/// <summary> /// Ctor for event args. User internally. /// </summary> /// <param name="location">Mouse poiner location.</param> /// <param name="keyboard">Keyboard state.</param> /// <param name="type">Type of context menu id.</param> /// <param name="element">Control under mouse pointer.</param> public ShowContextMenuEventArgs(Point location, bool keyboard, int type, Control element) { _location = location; _keyboard = keyboard; if (element != null) { _element = element; } _identifier = (MenuIdentifier)type; }
public static bool IsEdition(MenuIdentifier contextMenuId) { var intValue = (int)contextMenuId; return(IsEdition(intValue)); }