Example #1
0
        private void LoadAllItems()
        {
            ICollection <Item>           allItems        = _catalogManager.GetAllItems();
            AutoCompleteStringCollection itemsCollection = new AutoCompleteStringCollection();

            allItems.ToList().ForEach((item) => itemsCollection.Add(item.ItemName));
            txt_searchItemName.AutoCompleteCustomSource = itemsCollection;
        }