Exemple #1
0
 public UserMenuItem(MenuItemDefinition menuItemDefinition)
 {
     Name        = menuItemDefinition.Name;
     DisplayName = menuItemDefinition.DisplayName;
     Url         = menuItemDefinition.Url;
     IsEnabled   = menuItemDefinition.IsEnabled;
     IsVisible   = menuItemDefinition.IsVisible;
     Items       = new List <UserMenuItem>();
 }
Exemple #2
0
 public MenuItemDefinition AddItem(MenuItemDefinition menuItem)
 {
     Items.Add(menuItem);
     return(this);
 }