AJH.CMS.WEB.UI.Admin.ManageCatalog_UC.FillCatalogTree C# (CSharp) Метод

FillCatalogTree() приватный Метод

private FillCatalogTree ( ) : void
Результат void
        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