public static void Start() { Console.Clear(); while (true) { Console.Clear(); Output.SendToConsole("Flooring Mastery Order Menu"); Output.SendToConsole("---------------------------------"); Output.SendToConsole("1. Order Lookup"); Output.SendToConsole("2. Add an Order"); Output.SendToConsole("3. Edit an order"); Output.SendToConsole("4. Remove an order"); Output.SendToConsole("5. List orders"); Output.SendToConsole(); Output.SendToConsole("Q. Return to Main Menu"); Console.Write("\nEnter selection: "); string userinput = Console.ReadLine().ToLower(); switch (userinput) { case "1": OrderLookupWorkflow lookupWorkflow = DIContainer.Kernel.Get <OrderLookupWorkflow>(); lookupWorkflow.Execute(); break; case "2": OrderAddWorkflow orderAddWorkflow = DIContainer.Kernel.Get <OrderAddWorkflow>(); orderAddWorkflow.Execute(); break; case "3": OrderEditWorkflow orderEditWorkflow = DIContainer.Kernel.Get <OrderEditWorkflow>(); orderEditWorkflow.Execute(); break; case "4": OrderRemovalWorkflow orderRemovalWorkflow = DIContainer.Kernel.Get <OrderRemovalWorkflow>(); orderRemovalWorkflow.Execute(); break; case "5": OrderListWorkflow orderListWorkflow = DIContainer.Kernel.Get <OrderListWorkflow>(); orderListWorkflow.Execute(); break; case "q": return; default: Output.SendToConsole("\nInvalid selection. Press any key to try again..."); Console.ReadKey(); break; } } }
public static void Start() { while (true) { Console.Clear(); Console.WriteLine(BorderBar); Console.WriteLine("\nSWC Corp"); Console.WriteLine(BorderBar); Console.WriteLine("\n1. Display an Order"); Console.WriteLine("2. Add an Order"); Console.WriteLine("3. Edit an Order"); Console.WriteLine("4. Remove an Order"); Console.WriteLine(BorderBar); Console.WriteLine("\nQ to quit"); Console.WriteLine(BorderBar); Console.WriteLine("\nEnterSelection: "); string userinput = Console.ReadLine(); switch (userinput) { case "1": OrderLookupWorkflow lookupWorkflow = new OrderLookupWorkflow(); lookupWorkflow.Execute(); break; case "2": OrderAddWorkflow orderAddWorkflow = new OrderAddWorkflow(); orderAddWorkflow.Execute(); break; case "3": OrderEditWorkflow orderEditWorkflow = new OrderEditWorkflow(); orderEditWorkflow.Execute(); break; case "4": OrderDeleteWorkflow orderDeleteWorkflow = new OrderDeleteWorkflow(); orderDeleteWorkflow.Execute(); break; case "Q": return; } } }
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; } } }