Example #1
0
File: Menu.cs Project: oldkwok/Kwop
 public MenuDefinition AddItem(MenuItemDefinition menuItem)
 {
     Items.Add(menuItem);
     return this;
 }
Example #2
0
File: Menu.cs Project: oldkwok/Kwop
 internal UserMenuItem(MenuItemDefinition menuItemDefinition)
 {
     Name = menuItemDefinition.Name;
     DisplayName = menuItemDefinition.DisplayName;
     Icon = menuItemDefinition.Icon;
     Order = menuItemDefinition.Order;
     Url = menuItemDefinition.Url;
     CustomData = menuItemDefinition.CustomData;
     Items = new List<UserMenuItem>();
 }