public void Start() { while (true) { Console.Clear(); Console.WriteLine("*** ***"); Console.WriteLine("* Flooring Program *"); Console.WriteLine("*** ***"); Console.WriteLine(""); Console.WriteLine("1. Display Orders"); Console.WriteLine("2. Add Orders"); Console.WriteLine("3. Edit Orders"); Console.WriteLine("4. Remove Orders"); Console.WriteLine("\nQ to quit. "); Console.Write("Enter Selection: "); string input = Console.ReadLine(); switch (input) { case "1": OrderLookupWorkflow orderLookup = new OrderLookupWorkflow(); orderLookup.Execute(); break; case "2": OrderAddWorkflow orderAdd = new OrderAddWorkflow(); orderAdd.Execute(); break; case "3": OrderEditWorkflow orderEdit = new OrderEditWorkflow(); orderEdit.Execute(); break; case "4": OrderRemoveWorkflow orderRemove = new OrderRemoveWorkflow(); orderRemove.Execute(); break; case "q": case "Q": return; default: break; } } }
public static void Start() { while (true) { Console.Clear(); Console.WriteLine("||| SWC Flooring Project |||"); Console.WriteLine("|||------------------------------|||"); Console.WriteLine("||| 1. Display Orders |||"); Console.WriteLine("|||------------------------------|||"); Console.WriteLine("||| 2. Add Order |||"); Console.WriteLine("|||------------------------------|||"); Console.WriteLine("||| 3. Edit Order |||"); Console.WriteLine("|||------------------------------|||"); Console.WriteLine("||| 4. Remove Order |||"); Console.WriteLine("|||------------------------------|||"); Console.WriteLine("||| 5. Display Products |||"); Console.WriteLine("|||------------------------------|||"); Console.WriteLine("||| 6. Display all States |||"); Console.WriteLine("|||______________________________|||"); Console.WriteLine("\nQ to Quit"); Console.Write("\nEnter selection: "); string userinput = Console.ReadLine(); switch (userinput) { case "1": OrderLookupWorkflow lookupWorkflow = new OrderLookupWorkflow(); lookupWorkflow.Execute(); break; case "2": OrderAddWorkflow addWorkflow = new OrderAddWorkflow(); addWorkflow.Execute(); break; case "3": OrderEditWorkflow editWorkflow = new OrderEditWorkflow(); editWorkflow.Execute(); break; case "4": OrderRemoveWorkflow removeWorkflow = new OrderRemoveWorkflow(); removeWorkflow.Execute(); break; case "5": DisplayProductsWorkflow displayWorkflow = new DisplayProductsWorkflow(); displayWorkflow.Execute(); Console.WriteLine("Press any key to continue"); Console.ReadKey(); break; case "6": DisplayAllStatesWorkflow statesWorkflow = new DisplayAllStatesWorkflow(); statesWorkflow.Execute(); Console.WriteLine("Press any key to continue"); Console.ReadKey(); break; case "Q": return; } } }