Esempio n. 1
0
    // create the main site navigation!
    private void CreateMainMenu()
    {
        menuList = new NavMenuList();

        menuList.Add("link_start", GetLocalResourceObject("link_start.NavigateUrl").ToString(),
            GetLocalResourceObject("link_start.Text").ToString(), "current");
        menuList.Add("link_graphs", GetLocalResourceObject("link_graphs.NavigateUrl").ToString(),
            GetLocalResourceObject("link_graphs.Text").ToString());
        menuList.Add("link_stations", GetLocalResourceObject("link_stations.NavigateUrl").ToString(),
            GetLocalResourceObject("link_stations.Text").ToString());
        menuList.Add("link_about", GetLocalResourceObject("link_about.NavigateUrl").ToString(),
            GetLocalResourceObject("link_about.Text").ToString());
        menuList.Add("link_language", GetLocalResourceObject("link_language.NavigateUrl").ToString(),
            GetLocalResourceObject("link_language.Text").ToString(),
            GetLocalResourceObject("link_language.CssClass").ToString());
    }
Esempio n. 2
0
 internal NavMenuListEnumerator(NavMenuList navList)
 {
     this.navList = navList;
     Reset();
 }