Пример #1
0
        private Menu GetMenu()
        {
            Menu pageMenu;

            if (useSuperfish)
            {
                if (direction == "Vertical")
                {
                    mojoMenuSuperfishVertical sv = new mojoMenuSuperfishVertical();
                    sv.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss;
                    pageMenu = sv;
                }
                else
                {
                    mojoMenuSuperfish sf = new mojoMenuSuperfish();
                    sf.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss;
                    pageMenu = sf;
                }
            }
            else if (useArtisteer)
            {
                mojoMenuArtisteerVertical av = new mojoMenuArtisteerVertical();
                av.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss;
                pageMenu = av;
            }
            else if (use3SpansInLinks)
            {
                mojoMenuWith3SpansInLinks m3s = new mojoMenuWith3SpansInLinks();
                m3s.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss;
                pageMenu = m3s;
            }
            else if (UseSpanInLinks)
            {
                mojoMenuWithSpanInLinks ms = new mojoMenuWithSpanInLinks();
                ms.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss;
                pageMenu = ms;
            }
            else
            {
                mojoMenu mm = new mojoMenu();
                mm.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss;
                pageMenu = mm;
            }

            return(pageMenu);
        }
Пример #2
0
        private Menu GetMenu()
        {
            Menu pageMenu;

            if (useSuperfish)
            {
                if (direction == "Vertical")
                {
                    mojoMenuSuperfishVertical sv = new mojoMenuSuperfishVertical();
                    sv.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss;
                    pageMenu = sv;
                }
                else
                {
                    mojoMenuSuperfish sf = new mojoMenuSuperfish();
                    sf.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss;
                    pageMenu = sf;
                }
            }
            else if (useArtisteer)
            {
                mojoMenuArtisteerVertical av = new mojoMenuArtisteerVertical();
                av.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss;
                pageMenu = av;
            }
            else if (use3SpansInLinks)
            {
                mojoMenuWith3SpansInLinks m3s = new mojoMenuWith3SpansInLinks();
                m3s.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss;
                pageMenu = m3s;
            }
            else if (UseSpanInLinks)
            {
                mojoMenuWithSpanInLinks ms = new mojoMenuWithSpanInLinks();
                ms.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss;
                pageMenu = ms;
            }
            else
            {
                mojoMenu mm = new mojoMenu();
                mm.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss;
                pageMenu = mm;
            }

            return pageMenu;
        }