Esempio n. 1
0
        private static void AddOrder()
        {
            PrintHeader();
            Console.WriteLine("== Add an Order ==\n");
            Console.WriteLine("What variety?");
            var variety = Console.ReadLine();

            Console.WriteLine("\nHow many?");
            var quantity = int.Parse(Console.ReadLine());

            var newOrder = new CookieOrder(variety, quantity);

            masterOrder.AddOrder(newOrder);

            Console.WriteLine("\nYour order has been added.");
            WaitForEnterKey();
        }
Esempio n. 2
0
 public void AddOrder(CookieOrder cookieOrder)
 {
     orders.Add(cookieOrder);
 }