private static void PrintCustomerOrderHistory() { IEnumerable <Order> orders = _customerSingleton.FetchCustomerOrders(_orderSingleton.Customer); foreach (Order o in orders) { InterfaceSingleton.printList(o.Pizzas, $"{o.TimeOfPurchase.ToString("MMMM dd, yyyy")} || Store: {o.Store.Name}"); System.Console.WriteLine("Total: $" + o.TotalCost); } }
private static CustomPizza AddTopping(CustomPizza customPizza) { var index = Console.ReadLine(); var valid = int.TryParse(index, out int input); customPizza.Toppings.Add(_toppingSingleton.Toppings[int.Parse(index) - 1]); System.Console.WriteLine(input); if (customPizza.Toppings.Count > 4) { System.Console.WriteLine("\n"); InterfaceSingleton.printList(customPizza.Toppings, "Here are your Pizzas Toppings"); return(customPizza); } System.Console.WriteLine("add another? (Y/N)"); var response = Console.ReadLine(); if (response == "Y") { PrintToppings(); AddTopping(customPizza); } return(customPizza); }
private static void PrintCrusts() { InterfaceSingleton.printList(_crustSingleton.Crusts, "Please select your crust"); }
private static void PrintToppings() { InterfaceSingleton.printList(_toppingSingleton.Toppings, "Please select your toppings"); }
private static void PrintStoreList() { InterfaceSingleton.printList(_storeSingleton.Stores, "Please select a store"); }
private static void PrintSizes() { InterfaceSingleton.printList(_sizeSingleton.Sizes, "Please select a size"); }
private static void PrintPizzaList() { InterfaceSingleton.printList(_pizzaSingleton.Pizzas, "Please select a Pizza"); }
private static void PrintOrder() { InterfaceSingleton.printList(_orderSingleton.Pizzas, "Your order so far"); System.Console.WriteLine("Total: $" + _orderSingleton.TotalCost); System.Console.WriteLine("Store:" + _orderSingleton.Store.Name + " || Customer:" + _orderSingleton.Customer.Name + " || Time:" + _orderSingleton.TimeStamp.ToString("hh:mm tt")); }
private static void PrintFinalActions() { InterfaceSingleton.printList(_interfaceSingleton.FinalActions, ("What would you like to do next")); }