コード例 #1
0
ファイル: MenuSection.cs プロジェクト: Epitomy/CMS
        public static MenuSection GetSection(string configFile)
        {
            MenuSection section = new MenuSection();

            section.GetSection(configFile, SectionName);
            return(section);
        }
コード例 #2
0
 static MenuFactory()
 {
     defaultMenu = new MenuTemplate();
     Configuration.MenuSection menuSection = Configuration.MenuSection.GetSection();
     if (menuSection != null)
     {
         defaultMenu.ItemContainers = CreateItems(menuSection.Items, new List <IMenuItemContainer>());
     }
 }
コード例 #3
0
 public static void RegisterAreaMenu(string area, string menuFileName)
 {
     lock (areasMenu)
     {
         Configuration.MenuSection menuSection = Configuration.MenuSection.GetSection(menuFileName);
         if (menuSection != null)
         {
             MenuTemplate areaMenu = new MenuTemplate();
             areaMenu.ItemContainers = CreateItems(menuSection.Items, new List <IMenuItemContainer>());
             areasMenu.Add(area, areaMenu);
         }
     }
 }
コード例 #4
0
ファイル: MenuSection.cs プロジェクト: Godoy/CMS
 public static MenuSection GetSection(string configFile)
 {
     MenuSection section = new MenuSection();
     section.GetSection(configFile, SectionName);
     return section;
 }