Exemplo n.º 1
0
        public void InitializeMenu1()
        {
            NavigationLink        nav          = new NavigationLink();
            List <Menu>           meuelist1    = new List <Menu>();
            List <MegamenuColumn> submenuitems = new List <MegamenuColumn>();

            nav.label = "Hand Tools";
            nav.url   = "./shop";
            nav.menu  = meuelist1;


            Menu menulevel1 = new Menu();

            menulevel1.type    = "megamenu";
            menulevel1.size    = "xl";
            menulevel1.image   = "assets/images/megamenu/megamenu-1.jpg";
            menulevel1.columns = submenuitems;
            menulevel1.items   = null;


            MegamenuColumn col1 = new MegamenuColumn();

            col1.size = 3;
            col1.items.Add(
                new NestedLink()
            {
                label = "Power Tools",
                url   = "/shop",
                items = new List <NestedLink>()
                {
                    new NestedLink()
                    {
                        label = "Engravers", url = "./shop"
                    },
                    new NestedLink()
                    {
                        label = "Drills", url = "./Drills"
                    },
                    new NestedLink()
                    {
                        label = "Wrenches", url = "./Wrenches"
                    },
                    new NestedLink()
                    {
                        label = "Plumbing", url = "./Plumbing"
                    },
                    new NestedLink()
                    {
                        label = "Pneumatic", url = "./Pneumatic"
                    },
                }
            }

                );

            submenuitems.Add(col1);
            nav.menu = meuelist1;
        }
Exemplo n.º 2
0
        private NavigationLink GetNavMenu2()
        {
            NavigationLink        nav          = new NavigationLink();
            List <MegamenuColumn> submenuitems = new List <MegamenuColumn>();

            nav.label = "Hand Tools";
            nav.url   = "./shop";
            nav.menu  = new List <Menu>();
            Menu menulevel1 = new Menu();

            menulevel1.type    = "megamenu";
            menulevel1.size    = "xl";
            menulevel1.image   = "assets/images/megamenu/megamenu-1.jpg";
            menulevel1.items   = null;
            menulevel1.columns = new List <MegamenuColumn>()
            {
                new MegamenuColumn {
                    size = 3, items = new List <NestedLink>()
                    {
                        new NestedLink()
                        {
                            label = "Power Tools",
                            url   = "/shop",
                            items = new List <NestedLink>()
                            {
                                new NestedLink()
                                {
                                    label = "Engravers", url = "./shop"
                                },
                                new NestedLink()
                                {
                                    label = "Drills", url = "./Drills"
                                },
                                new NestedLink()
                                {
                                    label = "Wrenches", url = "./Wrenches"
                                },
                                new NestedLink()
                                {
                                    label = "Plumbing", url = "./Plumbing"
                                },
                                new NestedLink()
                                {
                                    label = "Pneumatic", url = "./Pneumatic"
                                }
                            }
                        }
                    }
                }
            };
            nav.menu.Add(menulevel1);
            return(nav);
        }