Example #1
0
        private void Window_ContentRendered()
        {
            var productCollection = productData.GetAllProducts();

            foreach (var item in productCollection)
            {
                Products.Add(item);
            }
            HideProgressBar();
        }
Example #2
0
        private void GetProducts()
        {
            List <ComboboxItemDataM> _temp = new List <ComboboxItemDataM>();
            var product = startupData.GetAllProducts();

            foreach (var item in product)
            {
                _temp.Add(new ComboboxItemDataM {
                    Text = item.Name, Value = item.Barcode, Hover = item.Barcode
                });
            }
            SourceSearchProducts = new ObservableCollection <ComboboxItemDataM>(_temp);
        }