private void InvalidateExternalPortletsCollections(object sender, EventArgs e) { this._Portlets = null; }
public void AddPortlet(PortletInfo portlet, int order) { // add portlet to this container Common.DatabaseProvider.AddContainerPortletLink(this, portlet, order); // reset portlets collection this._Portlets = null; }
public void RemovePortlet(PortletInfo portlet) { // remove portlet from this container Common.DatabaseProvider.RemoveContainerPortletLink(this, portlet); // reset portlets collection this._Portlets = null; }
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[]; }