Esempio n. 1
0
        private void BindRightCatalog()
        {
            WebPartInfo[] infos = Config.WebParts.GetAvailableWebParts(WebPartZone.HomePageRightZone);

            rptCatalogWebParts.DataSource = infos;
            rptCatalogWebParts.DataBind();

            ZoneToAddPartsTo = WebPartZone.HomePageRightZone;
        }
Esempio n. 2
0
        private void BindLeftCatalog()
        {
            IList<string> lstTitles = (from WebPart wp in wpzHomePageLeftZone.WebParts select wp.Title.ToLower()).ToList();
            WebPartInfo[] infos = Config.WebParts.GetAvailableWebParts(WebPartZone.HomePageLeftZone)
                .ToList().Where(x => !lstTitles.Contains(x.Name.ToLower())
                                  && !lstTitles.Contains(x.Name.Translate().ToLower())).ToArray();

            rptCatalogWebParts.DataSource = infos;
            rptCatalogWebParts.DataBind();

            ZoneToAddPartsTo = WebPartZone.HomePageLeftZone;
        }