Пример #1
0
 private void InvalidateExternalPortletsCollections(object sender, EventArgs e)
 {
     this._Portlets = null;
 }
Пример #2
0
        public void AddPortlet(PortletInfo portlet, int order)
        {
            // add portlet to this container
            Common.DatabaseProvider.AddContainerPortletLink(this, portlet, order);

            // reset portlets collection
            this._Portlets = null;
        }
Пример #3
0
        public void RemovePortlet(PortletInfo portlet)
        {
            // remove portlet from this container
            Common.DatabaseProvider.RemoveContainerPortletLink(this, portlet);

            // reset portlets collection
            this._Portlets = null;
        }
Пример #4
0
        private ListItem[] GetPortletItemList(PortletCollection excludedList)
        {
            ArrayList list = new ArrayList(PortletInfo.Collection.Count - excludedList.Count);

            // add the container items
            foreach(PortletInfo info in PortletInfo.Collection)
            {
                if (excludedList.Contains(info.Identity) == false)
                {
                    ListItem item = new ListItem(info.Title, info.Identity.ToString());
                    list.Add(item);
                }
            }

            // return the list of container values
            return list.ToArray(typeof(ListItem)) as ListItem[];
        }