Exemple #1
0
        protected override void AddToppings()
        {
            int MaxToppings = 3;

            CYOPizza.DisplayXMLMenu(AllToppings);
            Console.WriteLine("What Toppings would you like on your pizza? Pick up to three, and choose 0 to skip!\nThe first two toppings come included in your pizza!");
            Toppings.Add(AllToppings[0]);
            Toppings.Add(AllToppings[1]);
            while (MaxToppings > 0)
            {
                Toppings Temp = Common.SwitchChoice(0, 10, AllToppings);
                if (Temp is null)
                {
                }
                else
                {
                    Toppings.Add(Temp);
                }
                MaxToppings--;
            }
        }
Exemple #2
0
 protected override void AddSize()
 {
     CYOPizza.DisplayXMLMenu(AllSizes);
     Console.WriteLine("What size would you like?");
     Size = Common.SwitchChoice(1, 3, AllSizes);
 }
Exemple #3
0
 protected override void AddCrust()
 {
     CYOPizza.DisplayXMLMenu(AllCrusts);
     Console.WriteLine("What kind of Crust would you like?");
     Crust = Common.SwitchChoice(1, 3, AllCrusts);
 }