/// <summary> /// Cria os nós do que correspondem ao Módulo /// </summary> /// <param name="raizRow">Raiz</param> /// <returns></returns> private SiteMapNode CriarRaizSiteMapNode(NosSiteMapDataSet.RaizRow raizRow) { SiteMapNode node = new SiteMapNode( this, raizRow.Codigo, String.Empty, raizRow.Nome, raizRow.IsDescricaoNull() ? String.Empty : raizRow.Descricao ); node.Roles = new string[] { "*" }; return node; }
/// <summary> /// Cria os nós que representam as funções /// </summary> /// <param name="RaizMapNode">Módulo que a função pertence</param> /// <param name="noRow">Nó do raiz</param> /// <returns></returns> private SiteMapNode CriarNoSiteMapNode(SiteMapNode RaizMapNode, NosSiteMapDataSet.NoRow noRow) { SiteMapNode node = new SiteMapNode( this, noRow.Codigo, noRow.IsUrlNull() ? String.Empty : noRow.Url, noRow.Nome, noRow.IsDescricaoNull() ? String.Empty : noRow.Descricao ); node.Roles = new string[] { "*" }; return node; }