public ItemCollection CloneItems() { ItemCollection arrList = new ItemCollection(); int i = 0; while (i < this.Count) { arrList.Add((SmartListItem)this.List[i]); i++; } return(arrList); }
private bool FilterItems(string value, ItemCollection items, ItemCollection filteredItems) { bool result = false; //ItemCollection filteredItems = new ItemCollection(); for (int i = 0; i < items.Count; i++) { string item = (string)items[i].Text; string val = item.Substring(0, value.Length).ToLower(); if (String.Compare(val, value, true) == 0) { filteredItems.Add(items[i]); result = true; } //result = true; } return(result); }
internal ListItem AddItem(ListItem item) { m_itemList.Add(item); this.Invalidate(); return(item); }