Exemple #1
0
        public void BuyingItems()
        {
            Console.Clear();
            LemonadeStandInventory();
            Console.WriteLine("What would you like to buy today, cups, ice, sugar, lemons or nothing?");
            string itemsBeingBought = Console.ReadLine();

            switch (itemsBeingBought)
            {
            case "cups":
                myStore.BuyingCups();
                MoneyLostFromBuyingCups();
                AddingCupsToInventory();
                BuyingItems();
                break;

            case "ice":
                myStore.BuyingIce();
                MoneyLostFromBuyingIce();
                AddingIceToInventory();
                BuyingItems();
                break;

            case "sugar":
                myStore.BuyingSugar();
                MoneyLostFromBuyingSugar();
                AddingSugarToInventory();
                BuyingItems();
                break;

            case "lemons":
                myStore.BuyingLemons();
                MoneyLostFromBuyingLemons();
                AddingLemonsToInvetory();
                BuyingItems();
                break;

            case "nothing":
                break;

            default:
                BuyingItems();
                break;
            }
        }