private void PopulatingListShoppingList() { IAutocomplete autocomplete = new Autocomplete(_unit); AutoCompleteList?.Clear(); // not equal null foreach (var item in autocomplete.AutoCompleteProduct(ShoppingListItem)) { AutoCompleteList?.Add(item); } OnPropertyChanged("AutoCompleteList"); }
private void PopulatingListFindProduct() { IAutocomplete autocomplete = new Autocomplete(_unit); AutoCompleteList?.Clear(); foreach (var item in autocomplete.AutoCompleteProduct(ProductName)) { AutoCompleteList?.Add(item); } OnPropertyChanged("AutoCompleteList"); }