private async Task RefreshShoppingList() { var x = await appModelService.GetShoppingListByGuid(currentShoppingList.ShoppingListId); currentShoppingList = x; LoadShoppingListState(); }
private async Task RefreshList() { //////ShoppingLists = new ObservableCollection<ShoppingList>(); //////ShoppingLists = await appModelService.GetAllShoppingLists(); ////////ShoppingDetails = null; //////ShoppingDetails = new ObservableCollection<ShoppingDetail>(); if (currentShoppingList != null) { await Task.Delay(1000); //ShoppingDetails = new ObservableCollection<ShoppingDetail>(currentShoppingList.ShoppingDetails); var x = await appModelService.GetShoppingListByGuid(currentShoppingList.ShoppingListId); currentShoppingList = x; //shoppingDetails = currentShoppingList.ShoppingDetails; //ShoppingDetails = await appModelService.GetAllShoppingDetailsByShoppigListGuid(currentShoppingList.ShoppingListId); ////ShoppingDetails = currentShoppingList.ShoppingDetails; ////// SelectedShoppingList = currentShoppingList; LoadShoppingListState(); } }