示例#1
0
文件: Menu.cs 项目: oldkwok/Kwop
 public MenuDefinition AddItem(MenuItemDefinition menuItem)
 {
     Items.Add(menuItem);
     return this;
 }
示例#2
0
文件: Menu.cs 项目: 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>();
 }