Esempio n. 1
0
        static void EditSize(Pizza pizza)
        {
            System.Console.WriteLine("- Select Pizza Size");
            Starter.SelectPizzaSizeMenu();
            int select;

            int.TryParse(Console.ReadLine(), out select);
            switch (select)
            {
            case 1:
                pizza.EditPizzaSize("S");
                System.Console.WriteLine("Your Pizza is now Small!");
                break;

            case 2:
                pizza.EditPizzaSize("M");
                System.Console.WriteLine("Your Pizza is now Medium!");
                break;

            case 3:
                pizza.EditPizzaSize("L");
                System.Console.WriteLine("Your Pizza is now Large!");
                break;

            case 4:
                pizza.EditPizzaSize("XL");
                System.Console.WriteLine("Your Pizza is now Extra Large!");
                break;

            case 99:
                System.Console.WriteLine("Returning to Modify Pizza Menu..."); //////////////
                System.Console.WriteLine();
                // ModifyPizza(pizza);
                break;

            default:
                System.Console.WriteLine("Default case");
                System.Console.WriteLine("Returning to Modify Pizza Menu..."); //////////////
                break;
            }
        }