private Menu GetMenu() { Menu menu; if (useSuperfish) { if (direction == "Vertical") { mojoMenuSuperfishVertical sv = new mojoMenuSuperfishVertical(); sv.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss; menu = sv; } else { mojoMenuSuperfish sf = new mojoMenuSuperfish(); sf.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss; menu = sf; } } else if (useArtisteer) { mojoMenuArtisteer artMenu = new mojoMenuArtisteer(); artMenu.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss; menu = artMenu; } else if (use3SpansInLinks) { mojoMenuWith3SpansInLinks m3s = new mojoMenuWith3SpansInLinks(); m3s.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss; menu = m3s; } else if (UseSpanInLinks) { mojoMenuWithSpanInLinks ms = new mojoMenuWithSpanInLinks(); ms.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss; menu = ms; } else { mojoMenu mm = new mojoMenu(); mm.UseDataRole = useDataRole; mm.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss; menu = mm; } return(menu); }
private Menu GetMenu() { Menu menu; if (useSuperfish) { if (direction == "Vertical") { mojoMenuSuperfishVertical sv = new mojoMenuSuperfishVertical(); sv.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss; menu = sv; } else { mojoMenuSuperfish sf = new mojoMenuSuperfish(); sf.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss; menu = sf; } } else if (useArtisteer) { mojoMenuArtisteer artMenu = new mojoMenuArtisteer(); artMenu.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss; menu = artMenu; } else if (use3SpansInLinks) { mojoMenuWith3SpansInLinks m3s = new mojoMenuWith3SpansInLinks(); m3s.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss; menu = m3s; } else if (UseSpanInLinks) { mojoMenuWithSpanInLinks ms = new mojoMenuWithSpanInLinks(); ms.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss; menu = ms; } else { mojoMenu mm = new mojoMenu(); mm.UseDataRole = useDataRole; mm.UseMenuTooltipForCustomCss = useMenuTooltipForCustomCss; menu = mm; } return menu; }