public BaseMenuAttribute(object parent, MenuType type, MenuCommandFlag commandFlag, string commandName, string buttonText)
 {
     Parent      = (parent as Enum)?.field();
     Type        = type;
     CommandFlag = commandFlag;
     CommandName = commandName;
     ButtonText  = buttonText;
 }
Beispiel #2
0
 public ToolbarAttribute(object parent = null, MenuCommandFlag commandFlag = MenuCommandFlag.None, string commandName = null, string buttonText = null)
     : base(parent, MenuType.Toolbar, commandFlag, commandName, buttonText)
 {
 }