public Profile() { modifierList = new ModifierList(); collectionsList = new CollectionsList(); columnsList = new ColumnsList(); selectedColumnsList = new SelectedColumnsList(); }
private void AddItmes(object obj) { OffersModel offersModel = new OffersModel { Name = $"New Item Added {Guid.NewGuid():N}" }; CollectionsList.Add(offersModel); }
public IEnumerator TestListCollections() { Log.Debug("VisualRecognitionServiceV4IntegrationTests", "Attempting to List Collections..."); CollectionsList collectionsList = null; service.ListCollections( callback: (DetailedResponse <CollectionsList> response, IBMError error) => { Log.Debug("VisualRecognitionServiceV4IntegrationTests", "List Collections result: {0}", response.Response); collectionsList = response.Result; Assert.IsNotNull(collectionsList.Collections); Assert.IsTrue(collectionsList.Collections.Count > 0); Assert.IsNull(error); } ); while (collectionsList == null) { yield return(null); } }
private async void GetFoodItems(int categoryID) { CollectionsList = await _itemlistapi.GetListofItems(); var ProductItemsByCategory = new ObservableCollection <Product>(); var items = CollectionsList.Where(p => p.categories[0].id == categoryID).ToList(); foreach (var item in items) { ProductItemsByCategory.Add(item); } ProductsByCategory.Clear(); foreach (var item in ProductItemsByCategory) { ProductsByCategory.Add(item); } TotalProduuctItems = ProductsByCategory.Count; }
private void OnDeleteTapped(object obj) { var content = obj as OffersModel; CollectionsList.Remove(content); }