private void FillCatalogTree()
{
List<Catalog> catalogs = CatalogManager.GetCatalogs(CMSContext.PortalID, CMSContext.LanguageID);
List<Catalog> parentcatalogs = catalogs.Where(m => m.ParentCalalogID == 0).ToList();
trvCatalog.Nodes.Clear();
foreach (AJH.CMS.Core.Entities.Catalog Catalog in parentcatalogs)
{
TreeNode oNode = GetNodesChilds(Catalog, catalogs);
oNode.ImageUrl = CMSWebHelper.GetPublishedImage(Catalog.IsPublished);
trvCatalog.Nodes.Add(oNode);
}
trvCatalog.ExpandAll();
pnlView.Visible = true;
}
#endregion