Esempio n. 1
0
            public ItemCollection CloneItems()
            {
                ItemCollection arrList = new ItemCollection();

                int i = 0;

                while (i < this.Count)
                {
                    arrList.Add((SmartListItem)this.List[i]);
                    i++;
                }

                return(arrList);
            }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 internal ListItem AddItem(ListItem item)
 {
     m_itemList.Add(item);
     this.Invalidate();
     return(item);
 }