public ListInfoCollection GetListInfoCollection(string ListName, string ParentKey, int DefinitionID) { IList objListInfoCollection = new ListInfoCollection(); ListInfo objListInfo = new ListInfo(); return((ListInfoCollection)CBO.FillCollection(DataProvider.Instance().GetList(ListName, ParentKey, DefinitionID), typeof(ListInfo), ref objListInfoCollection)); }
public ListInfoCollection GetListInfoCollection(string ListName, string ParentKey, int PortalID) { IList lists = new ListInfoCollection(); foreach (KeyValuePair <string, ListInfo> listPair in GetListInfoDictionary(PortalID)) { ListInfo list = listPair.Value; if ((list.Name == ListName || string.IsNullOrEmpty(ListName)) && (list.ParentKey == ParentKey || string.IsNullOrEmpty(ParentKey)) && (list.PortalID == PortalID || PortalID == Null.NullInteger)) { lists.Add(list); } } return((ListInfoCollection)lists); }
public ListInfoCollection GetListInfoCollection(string listName, string parentKey, int portalId) { IList lists = new ListInfoCollection(); foreach (KeyValuePair <string, ListInfo> listPair in GetListInfoDictionary(portalId).OrderBy(l => l.Value.DisplayName)) { ListInfo list = listPair.Value; if ((list.Name == listName || string.IsNullOrEmpty(listName)) && (list.ParentKey == parentKey || string.IsNullOrEmpty(parentKey)) && (list.PortalID == portalId || portalId == Null.NullInteger)) { lists.Add(list); } } return((ListInfoCollection)lists); }
/// <summary> /// Loads top level entry list into DNNTree /// </summary> /// <history> /// [tamttt] 20/10/2004 Created /// </history> private void BindTree() { ListController ctlLists = new ListController(); ListInfoCollection colLists = ctlLists.GetListInfoCollection(); Hashtable indexLookup = new Hashtable(); DNNtree.TreeNodes.Clear(); foreach (ListInfo Lists in colLists) { TreeNode node = new TreeNode(Lists.DisplayName); node.Key = Lists.Key; node.ToolTip = Lists.EntryCount + " entries"; node.ImageIndex = (int)eImageType.Folder; //.Target = Lists.DefinitionID.ToString & ":" & Lists.EnableSortOrder.ToString ' borrow this property to store this value if (Lists.Level == 0) { DNNtree.TreeNodes.Add(node); } else { if (indexLookup[Lists.ParentList] != null) { TreeNode parentNode = (TreeNode)(indexLookup[Lists.ParentList]); parentNode.TreeNodes.Add(node); } } // Add index key here to find it later, should suggest with Joe to add it to DNNTree if (indexLookup[Lists.Key] == null) { indexLookup.Add(Lists.Key, node); } } }
public ListInfoCollection GetListInfoCollection(string ListName, string ParentKey, int PortalID) { IList lists = new ListInfoCollection(); foreach (KeyValuePair<string, ListInfo> listPair in GetListInfoDictionary(PortalID)) { ListInfo list = listPair.Value; if ((list.Name == ListName || string.IsNullOrEmpty(ListName)) && (list.ParentKey == ParentKey || string.IsNullOrEmpty(ParentKey)) && (list.PortalID == PortalID || PortalID == Null.NullInteger)) { lists.Add(list); } } return (ListInfoCollection) lists; }
public ListInfoCollection GetListInfoCollection(string ListName, string ParentKey, int DefinitionID) { IList objListInfoCollection = new ListInfoCollection(); ListInfo objListInfo = new ListInfo(); return ((ListInfoCollection)CBO.FillCollection(DataProvider.Instance().GetList(ListName, ParentKey, DefinitionID), typeof(ListInfo), ref objListInfoCollection)); }
public ListInfoCollection GetListInfoCollection(string listName, string parentKey, int portalId) { IList lists = new ListInfoCollection(); foreach (KeyValuePair<string, ListInfo> listPair in GetListInfoDictionary(portalId).OrderBy(l => l.Value.DisplayName)) { ListInfo list = listPair.Value; if ((list.Name == listName || string.IsNullOrEmpty(listName)) && (list.ParentKey == parentKey || string.IsNullOrEmpty(parentKey)) && (list.PortalID == portalId || portalId == Null.NullInteger)) { lists.Add(list); } } return (ListInfoCollection)lists; }