Esempio n. 1
0
        private void PrintAllSpecialtyPizzas()
        {
            System.Console.WriteLine("\n\nList of Specialties at picked Location");
            int size = SpecialtyPizzaList.Store().Count;

            for (int index = 0; index < size; ++index)
            {
                var ATruePizzaObject = SpecialtyPizzaList.Store()[index];
                System.Console.WriteLine($"{index+1}. {ATruePizzaObject.Item1}\t${ATruePizzaObject.Item2.Cost}");
            }
        }
Esempio n. 2
0
        private void UserChooseAnSpecialty()
        {
            System.Console.WriteLine("Please select a specialty");
            string reader   = System.Console.ReadLine();
            short  selected = Convert.ToInt16(reader);

            selected -= 1;
            int size = SpecialtyPizzaList.Store().Count;

            if (selected >= 0 && selected < size)
            {
                var ATruePizzaObject = SpecialtyPizzaList.Store()[selected];
                CurrentUsersList.Instance()[0].PizzaBoxStore.CurrentOrder.Add(ATruePizzaObject.Item2);
            }
        }