Пример #1
0
        public void AddIngredient(string _Name, string _Amount, Ingredient.Unit _Unit)
        {
            Ingredient ing = new Ingredient(_Name, _Amount, _Unit);

            ingredientsList.Add(ing);
            view.UpdateView();
            view.ResetText();
        }
        public void AddShoppingListItem(string shopListItem)
        {
            ShoppingItem shopItem = new ShoppingItem(shopListItem);

            shoppingListList.Add(shopListItem);
            view.UpdateView();
            view.ResetText();

            Constants.Conn.Insert(shopItem);
        }