Пример #1
0
        public List <MenuObject> GetMenuList(params OSecurityObjectTypes[] securityObjectTypes)
        {
            List <MenuObject> list = _menuItemManager.GetMenuList(securityObjectTypes);

            foreach (IExtension extension in Extension.Instance.Extensions.Where(extension => extension.QueryInterface(typeof(IMenu)) != null &&
                                                                                 list.Find(item => item.Name == extension.GetMeta("Name")) == null))
            {
                list.Add(_menuItemManager.AddNewMenu(extension.GetMeta("Name")));
            }
            return(list);
        }
Пример #2
0
 public List <MenuObject> GetMenuList(params OSecurityObjectTypes[] securityObjectTypes)
 {
     return(_menuItemManager.GetMenuList(securityObjectTypes));
 }