Exemple #1
0
        public void showProducts()
        {
            api listProductsApi = new api();

            List <Shoppinglistproduct> shoppinglistproducts = new List <Shoppinglistproduct>();

            Shoppinglist shoppinglist = shoppinglists.SelectedItem as Shoppinglist;

            shoppinglistproducts = listProductsApi.GetShoppinglistProducts(GlobalSettings.Id, shoppinglist.Id);

            if (shoppinglistproducts != null)
            {
                foreach (var product in shoppinglistproducts)
                {
                    lstNaam.Items.Add(product.Name);
                }
            }
        }