示例#1
0
        private async Task RefreshShoppingList()
        {
            var x = await appModelService.GetShoppingListByGuid(currentShoppingList.ShoppingListId);

            currentShoppingList = x;
            LoadShoppingListState();
        }
示例#2
0
        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();
            }
        }