private void ProcessChoice(string choice) { switch (choice) { case "1": DisplayOrdersWorkflow displaying = new DisplayOrdersWorkflow(); displaying.Execute(); break; case "2": AddOrderWorkflow adding = new AddOrderWorkflow(); adding.Execute(); break; case "3": EditOrderWorkflow editing = new EditOrderWorkflow(); editing.Execute(); break; case "4": RemoveOrderWorkFlow removing = new RemoveOrderWorkFlow(); removing.Execute(); break; } }
private void ProcessChoice(string input) { switch (input) { case "1": var DisplayOrder = new DisplayOrderWorkflow(); DisplayOrder.Execute(); break; case "2": var AddOrder = new AddOrderWorkflow(); AddOrder.Execute(); break; case "3": var EditOrder = new EditOrderWorkflow(); EditOrder.Execute(); break; case "4": var RemoveOrder = new RemoveOrderWorkflow(); RemoveOrder.Execute(); break; case "5": System.Environment.Exit(1); break; } }
public static void Run() { while (true) { Console.Clear(); Console.WriteLine("Make a Selection"); Console.WriteLine("1. Display Orders"); Console.WriteLine("2. Add an Order"); Console.WriteLine("3. Edit an Order"); Console.WriteLine("4. Remove an Order"); string userInput = Console.ReadLine(); switch (userInput) { case "1": LoadOrderWorkflow.Execute(); break; case "2": AddOrderWorkflow.Execute(); break; case "3": EditOrderWorkflow.Execute(); break; case "4": RemoveOrderWorkflow.Execute(); break; } } }
private static void ApplyChoice(int menuChoice) { switch (menuChoice) { case 1: OrderLookupWorkflow LookupWorkflow = new OrderLookupWorkflow(); LookupWorkflow.Execute(); break; case 2: AddOrderWorkflow AddOrder = new AddOrderWorkflow(); AddOrder.Execute(); break; case 3: EditOrderWorkflow EditOrder = new EditOrderWorkflow(); EditOrder.Execute(); break; case 4: DeleteOrderWorkflow DeleteOrder = new DeleteOrderWorkflow(); DeleteOrder.Execute(); break; case 5: Console.Write("To exit, "); CommonIO.Continue(); break; } }
public static void Main() { Console.WriteLine(ConsoleIO.HorizontalLine); Console.WriteLine("Flooring Order Management System"); Console.WriteLine(ConsoleIO.HorizontalLine); Console.WriteLine("1. List Orders"); Console.WriteLine("2. Add Order"); Console.WriteLine("3. Edit Order"); Console.WriteLine("4. Delete Order"); Console.WriteLine("Q. Quit"); Console.WriteLine(ConsoleIO.HorizontalLine); Console.WriteLine(); Console.WriteLine(); Console.Write("Please enter your selection: "); bool validInput = false; while (validInput == false) { string input = Console.ReadLine(); switch (input) { case "1": ViewOrderWorkflow viewOrder = new ViewOrderWorkflow(); validInput = true; viewOrder.Execute(); break; case "2": AddOrderWorkflow addOrder = new AddOrderWorkflow(); validInput = true; addOrder.Execute(); break; case "3": EditOrderWorkflow editOrder = new EditOrderWorkflow(); validInput = true; editOrder.Execute(); break; case "4": RemoveOrderWorkflow deleteOrder = new RemoveOrderWorkflow(); validInput = true; deleteOrder.Execute(); break; case "Q": return; default: Console.WriteLine("Invalid selection. Please enter one of the above options."); break; } } }
public static void Start() { while (true) { Console.Clear(); Console.WriteLine("********************************************************"); Console.WriteLine("* Flooring Program"); Console.WriteLine("*"); Console.WriteLine("* 1. Display Orders"); Console.WriteLine("* 2. Add an Order"); Console.WriteLine("* 3. Edit an Order"); Console.WriteLine("* 4. Remove an Order"); Console.WriteLine("* 5. Quit"); Console.WriteLine("*"); Console.WriteLine("********************************************************"); Console.Write("\n Enter Selection: "); string userinput = Console.ReadLine(); WorkflowHelper.MenuInputValidation(userinput, "That was not a valid entry"); switch (userinput) { case "1": DisplayWorkflow displayWorkflow = new DisplayWorkflow(); displayWorkflow.Execute(); break; case "2": AddOrderWorkflow addWorkflow = new AddOrderWorkflow(); addWorkflow.Execute(); break; case "3": EditOrderWorkflow editWorkflow = new EditOrderWorkflow(); editWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeWorkflow = new RemoveOrderWorkflow(); removeWorkflow.Execute(); break; case "5": QuitWorkflow quitWorkflow = new QuitWorkflow(); quitWorkflow.Execute(); return; } } }
public static void Start() { ConsoleIO prompt = new ConsoleIO(); while (!isDone) { Console.Clear(); Console.WriteLine("******************************"); Console.WriteLine("* " + PrintFormatting.companyName); Console.WriteLine("*"); Console.WriteLine("* 1. Display Orders"); Console.WriteLine("* 2. Add Order"); Console.WriteLine("* 3. Edit Order"); Console.WriteLine("* 4. Remove Order"); Console.WriteLine("* 5. Quit"); Console.WriteLine("*"); Console.WriteLine("******************************"); Console.Write("Enter your choice: "); string userInput = Console.ReadLine().ToUpper(); switch (userInput) { case "1": DisplayOrdersWorkflow display = new DisplayOrdersWorkflow(); display.Execute(); break; case "2": AddOrderWorkflow add = new AddOrderWorkflow(); add.Execute(); break; case "3": EditOrderWorkflow edit = new EditOrderWorkflow(); edit.Execute(); break; case "4": RemoveOrderWorkflow remove = new RemoveOrderWorkflow(); remove.Execute(); break; case "5": isDone = true; break; default: prompt.PrintError("Please enter a number from 1 to 5."); break; } } }
public static void StartMenu() { while (true) { Console.Clear(); Console.WriteLine(TextHelper.ConsoleBar); Console.WriteLine("* Flooring Program"); Console.WriteLine("*"); Console.WriteLine("* 1. Display Orders"); Console.WriteLine("* 2. Add an Order"); Console.WriteLine("* 3. Edit an Order"); Console.WriteLine("* 4. Remove an Order"); Console.WriteLine("* 5. Quit"); Console.WriteLine("*"); Console.WriteLine(TextHelper.ConsoleBar); Console.WriteLine("Enter your selection: "); string userInput = Console.ReadLine(); switch (userInput) { case "1": LookupOrderWorkflow lookupWorkflow = new LookupOrderWorkflow(); lookupWorkflow.Execute(); break; case "2": AddOrderWorkflow addOrderWorkflow = new AddOrderWorkflow(); addOrderWorkflow.Execute(); break; case "3": EditOrderWorkflow editOrderWorkflow = new EditOrderWorkflow(); editOrderWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeOrderWorkflow = new RemoveOrderWorkflow(); removeOrderWorkflow.Execute(); break; case "5": return; default: Console.WriteLine("That was not a valid entry! Press any key to contine..."); Console.ReadKey(); break; } } }
public static void Start() { string menu = "****************************************************************************\n* Flooring Program\n*\n* 1.Display Orders\n* 2.Add an Order\n* 3.Edit an Order\n* 4.Remove an Order\n* 5.Quit\n*\n****************************************************************************"; while (true) { Console.Clear(); Console.WriteLine(menu); Console.Write("\nEnter Selection: "); string userinput = Console.ReadLine(); int selection; if (!int.TryParse(userinput, out selection)) { Console.WriteLine("Error: You did not enter a valid number selection!"); ConsoleIO.PressAnyKey(); continue; } switch (selection) { case 1: //display orders DisplayOrderWorkflow displayOrderWorkflow = new DisplayOrderWorkflow(); displayOrderWorkflow.Execute(); break; case 2: //add an order AddOrderWorkflow addOrderWorkflow = new AddOrderWorkflow(); addOrderWorkflow.Execute(); break; case 3: //edit an order EditOrderWorkflow editOrderWorkflow = new EditOrderWorkflow(); editOrderWorkflow.Execute(); break; case 4: //remove an order RemoveOrderWorkflow removeOrderWorkflow = new RemoveOrderWorkflow(); removeOrderWorkflow.Execute(); break; case 5: //quit return; default: Console.WriteLine("Error: You did not enter a valid selection!"); ConsoleIO.PressAnyKey(); break; } } }
public static void Start() { while (true) { Console.Clear(); Console.WriteLine("*************************************************************************"); Console.WriteLine("*Flooring Program"); Console.WriteLine("*"); Console.WriteLine("*1. Display Orders"); Console.WriteLine("*2. Add an Order"); Console.WriteLine("*3. Edit an Order"); Console.WriteLine("*4. Remove an Order"); Console.WriteLine("*5. Quit"); Console.WriteLine("*************************************************************************"); Console.Write("Please enter a selection: "); string userInput = Console.ReadLine(); switch (userInput) { case "1": ListOrdersWorkflow ordersWorkflow = new ListOrdersWorkflow(); ordersWorkflow.Execute(); break; case "2": AddOrderWorkflow addOrderWorkflow = new AddOrderWorkflow(); addOrderWorkflow.Execute(); break; case "3": EditOrderWorkflow editOrderWorkflow = new EditOrderWorkflow(); editOrderWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeOrderWorkflow = new RemoveOrderWorkflow(); removeOrderWorkflow.Execute(); break; case "5": return; default: Console.WriteLine("That is not a valid selection."); Console.WriteLine("Press any key to continue..."); Console.ReadLine(); break; } } }
public static void Run() { string border = "**********************************"; while (true) { Console.WriteLine(border); Console.WriteLine("* Flooring Program"); Console.WriteLine("*"); Console.WriteLine("*1. Display Orders"); Console.WriteLine("*2. Add an Order"); Console.WriteLine("*3. Edit an Order"); Console.WriteLine("*4. Remove an Order"); Console.WriteLine("*5. Quit"); Console.WriteLine("*"); Console.WriteLine(border); string UserChoice = Console.ReadLine(); bool IsAnInt = int.TryParse(UserChoice, out int userChoice); if (!IsAnInt || userChoice < 1 || userChoice > 5) { Console.WriteLine("Please enter a number between 1 and 5."); continue; } switch (userChoice) { case 1: DisplayOrderWorkflow displayWorkflow = new DisplayOrderWorkflow(); displayWorkflow.Execute(); break; case 2: AddOrderWorkflow addWorkflow = new AddOrderWorkflow(); addWorkflow.Execute(); break; case 3: EditOrderWorkflow editWorkflow = new EditOrderWorkflow(); editWorkflow.Execute(); break; case 4: RemoveOrderWorkflow removeWorkflow = new RemoveOrderWorkflow(); removeWorkflow.Execute(); break; case 5: return; } } }
public static void Start() { while (true) { Console.Clear(); Console.WriteLine(ConsoleIO.starBorder); Console.WriteLine("* Flooring Program"); Console.WriteLine("*"); Console.WriteLine("* 1. Display Orders"); Console.WriteLine("* 2. Add an Order"); Console.WriteLine("* 3. Edit an Order"); Console.WriteLine("* 4. Remove an Order"); Console.WriteLine("* 5. Quit"); Console.WriteLine("*"); Console.WriteLine(ConsoleIO.starBorder); Console.Write("\nEnter a selection: "); string userInput = Console.ReadLine(); switch (userInput) { case "1": DisplayOrdersWorkflow displayWorkflow = new DisplayOrdersWorkflow(); displayWorkflow.Execute(); break; case "2": AddOrderWorkflow addWorkflow = new AddOrderWorkflow(); addWorkflow.Execute(); break; case "3": EditOrderWorkflow editWorkflow = new EditOrderWorkflow(); editWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeWorkflow = new RemoveOrderWorkflow(); removeWorkflow.Execute(); break; case "5": return; default: break; } } }
public static void Start() { while (true) { Console.WriteLine(new string('=', 60)); Console.WriteLine(""); Console.WriteLine(" FLOORING MENU"); Console.WriteLine(""); Console.WriteLine(new string('=', 60)); Console.WriteLine(""); Console.WriteLine(" 1. Display Order."); Console.WriteLine(" 2. Add an Order."); Console.WriteLine(" 3. Edit an Order."); Console.WriteLine(" 4. Remove an Order."); Console.WriteLine(" 5. Quit."); Console.WriteLine(""); Console.WriteLine(new string('=', 60)); Console.WriteLine(""); Console.WriteLine(" Please Enter a Selection: "); string userinput = Console.ReadLine(); switch (userinput) { case "1": DisplayOrdersWorkflow displayWorkflow = new DisplayOrdersWorkflow(); displayWorkflow.Execute(); break; case "2": AddOrderWorkflow addWorkflow = new AddOrderWorkflow(); addWorkflow.Execute(); break; case "3": EditOrderWorkflow editWorkflow = new EditOrderWorkflow(); editWorkflow.Execute(); break; case "4": DeleteOrderWorkflow deleteWorkflow = new DeleteOrderWorkflow(); deleteWorkflow.Execute(); break; case "5": Console.WriteLine("System End."); return; } } }
public static void Start() { while (true) { Console.WriteLine(""); Console.WriteLine(""); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("SGFlooring Order Menu"); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine("*****************************"); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("1. Display Order Information"); Console.WriteLine("2. Add A New Order"); Console.WriteLine("3. Edit An Existing Order"); Console.WriteLine("4. Remove An Existing Order"); Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("\nQ to quit"); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Enter Selection:"); string userinput = Console.ReadLine(); switch (userinput) { case "1": DisplayOrderWorkflow displayOrder = new DisplayOrderWorkflow(); displayOrder.Execute(); break; case "2": AddOrderWorkflow addNewOrder = new AddOrderWorkflow(); addNewOrder.Execute(); break; case "3": EditOrderWorkflow editOrder = new EditOrderWorkflow(); editOrder.Execute(); break; case "4": RemoveOrderWorkflow removeOrder = new RemoveOrderWorkflow(); removeOrder.Execute(); break; case "Q": return; } } }
public void MainMenu() { //Main menu, to include Display orders, add order, edit order, remove order, quit while (true) { Console.WriteLine("*************************************************************************************"); Console.WriteLine("*\tFlooring Program "); Console.WriteLine("*"); Console.WriteLine("* 1. Display Orders"); Console.WriteLine("* 2. Add an Order"); Console.WriteLine("* 3. Edit an Order"); Console.WriteLine("* 4. Remove an Order"); Console.WriteLine("* 5. Quit"); string input = Console.ReadLine(); switch (input.ToUpper()) { case "1": DisplayOrdersWorkflow displayOrders = new DisplayOrdersWorkflow(); displayOrders.Execute(); break; case "2": AddOrderWorkflow addOrder = new AddOrderWorkflow(); addOrder.Execute(); break; case "3": EditOrderWorkflow editOrder = new EditOrderWorkflow(); editOrder.Execute(); break; case "4": RemoveOrderWorkflow removeOrder = new RemoveOrderWorkflow(); removeOrder.Execute(); break; case "5": case "Q": Environment.Exit(0); break; default: Console.WriteLine("Invalid Entry"); break; } } }
public static void Run() { while (true) { Console.Clear(); Console.WriteLine("Flooring Program"); Console.WriteLine(); Console.WriteLine("1) Display Order"); Console.WriteLine("2) Add Order"); Console.WriteLine("3) Edit Order"); Console.WriteLine("4) Remove Order"); Console.WriteLine(); Console.WriteLine("5) Quit"); Console.WriteLine(); Console.WriteLine("Enter your selection:"); string userInput = Console.ReadLine(); switch (userInput.ToUpper()) { case "1": OrderLookupWorkflow lookupWorkflow = new OrderLookupWorkflow(); lookupWorkflow.Execute(); break; case "2": CreateOrderWorkflow createWorkFlow = new CreateOrderWorkflow(); createWorkFlow.Execute(); break; case "3": EditOrderWorkflow editWorkflow = new EditOrderWorkflow(); editWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeWorkflow = new RemoveOrderWorkflow(); removeWorkflow.Execute(); break; case "5": case "Q": Environment.Exit(0); return; } } }
public static void Show() { while (true) { Console.Clear(); Console.WriteLine("*********************************************************"); Console.WriteLine("* Flooring Program"); Console.WriteLine("*"); Console.WriteLine("1. Display Orders"); Console.WriteLine("2. Add an Order"); Console.WriteLine("3. Edit an Order"); Console.WriteLine("4. Remove an Order"); Console.WriteLine("\nQ to quit"); Console.WriteLine("*********************************************************"); Console.Write("\nEnter selection: "); switch (Console.ReadLine()) { case "1": DisplayOrdersWorkflow displayOrders = new DisplayOrdersWorkflow(); displayOrders.Execute(); break; case "2": AddOrderWorkflow addOrder = new AddOrderWorkflow(); addOrder.Execute(); break; case "3": EditOrderWorkflow editOrder = new EditOrderWorkflow(); editOrder.Execute(); break; case "4": RemoveOrderWorkflow removeOrder = new RemoveOrderWorkflow(); removeOrder.Execute(); break; case "Q": return; } } }
public static void Start() //made static because there will only be one menu start program running { while (true) { Console.Clear(); Console.WriteLine("*********************************"); Console.WriteLine("Flooring Program Menu"); Console.WriteLine("\n1. Display Order Details"); Console.WriteLine("2. Add an Order"); Console.WriteLine("3. Edit an Order"); Console.WriteLine("4. Remove an Order"); Console.WriteLine("5. Quit"); Console.WriteLine("\n*********************************"); Console.Write("\nEnter Selection: "); string userinput = Console.ReadLine(); switch (userinput) { case "1": OrderLookupWorkflow lookupWorkflow = new OrderLookupWorkflow(); lookupWorkflow.Execute(); break; case "2": AddOrderWorkflow addOrderWorkflow = new AddOrderWorkflow(); addOrderWorkflow.Execute(); break; case "3": EditOrderWorkflow editOrderWorkflow = new EditOrderWorkflow(); editOrderWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeOrderWorflow = new RemoveOrderWorkflow(); removeOrderWorflow.Execute(); break; case "5": return; } } }
public static void Start() { while (true) { Console.Clear(); Console.WriteLine("*************************************"); Console.WriteLine(" Floor Ordering Menu"); Console.WriteLine("*************************************"); Console.WriteLine("1. Display Orders"); Console.WriteLine("2. Add an Order"); Console.WriteLine("3. Edit an Order"); Console.WriteLine("4. Remove an Order"); Console.WriteLine("\nQ to quit"); Console.WriteLine("\nEnter selection"); string userinput = Console.ReadLine(); switch (userinput.ToUpper()) { case "1": Console.Clear(); DisplayOrdersWorkflow display = new DisplayOrdersWorkflow(); display.Execute(); break; case "2": Console.Clear(); AddOrderWorkflow add = new AddOrderWorkflow(); add.Execute(); break; case "3": EditOrderWorkflow edit = new EditOrderWorkflow(); edit.Execute(); break; case "4": RemoveOrderWorkflow remove = new RemoveOrderWorkflow(); remove.Execute(); break; case "Q": return; } } }
public void Start() { while (true) { Console.Clear(); string mode = ConfigurationManager.AppSettings["Mode"].ToString(); if (mode == "TrainingMode") { ConsoleIO.DisplayTrainingModeMessage(); } //Console.Clear(); char keyPressed = ConsoleIO.DisplayMenu(); switch (keyPressed) { case '1': DisplayOrdersWorkflow displayWorkflow = new DisplayOrdersWorkflow(); displayWorkflow.Execute(); break; case '2': AddOrderWorkflow addWorkflow = new AddOrderWorkflow(); addWorkflow.Execute(); break; case '3': EditOrderWorkflow editWorkflow = new EditOrderWorkflow(); editWorkflow.Execute(); break; case '4': RemoveOrderWorkflow removeWorkflow = new RemoveOrderWorkflow(); removeWorkflow.Execute(); break; case '5': return; default: break; } } }
public static void Start() { while (true) { Console.Clear(); Console.WriteLine("Flooring Program"); Console.WriteLine("------------------------"); Console.WriteLine("1. Display Order(s)"); Console.WriteLine("2. Add an Order"); Console.WriteLine("3. Edit an Order"); Console.WriteLine("4. Remove an Order"); Console.WriteLine("\nQ to quit"); Console.Write("\nEnter selection: "); string userinput = Console.ReadLine(); switch (userinput) { case "1": DisplayOrdersWorkflow lookupWorkflow = new DisplayOrdersWorkflow(); lookupWorkflow.Execute(); break; case "2": AddOrderWorkflow addWorkflow = new AddOrderWorkflow(); addWorkflow.Execute(); break; case "3": EditOrderWorkflow editWorkflow = new EditOrderWorkflow(); editWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeWorkflow = new RemoveOrderWorkflow(); removeWorkflow.Execute(); break; case "q": case "Q": return; } } }
public static void Start() { while (true) { Console.Clear(); Console.WriteLine("Flooring Program"); Console.WriteLine("*************************************************************************************"); Console.WriteLine("1. Display Orders"); Console.WriteLine("2. Add an Order"); Console.WriteLine("3. Edit an Order"); Console.WriteLine("4. Remove an Order"); Console.WriteLine("5. Quit"); Console.WriteLine("*************************************************************************************"); Console.Write("\nEnter selection: "); string userinput = Console.ReadLine(); switch (userinput) { case "1": OrderLookupWorkflow lookupWorkflow = new OrderLookupWorkflow(); lookupWorkflow.Execute(); break; case "2": SaveOrderWorkflow saveWorkflow = new SaveOrderWorkflow(); saveWorkflow.Execute(); break; case "3": EditOrderWorkflow editWorkflow = new EditOrderWorkflow(); editWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeWorkflow = new RemoveOrderWorkflow(); removeWorkflow.Execute(); break; case "5": return; } } }
public static void Start() { Console.Clear(); Console.WriteLine("Flooring Program"); Console.WriteLine("*******************************************"); Console.WriteLine("*"); Console.WriteLine("1. Display Orders"); Console.WriteLine("2. Add an Order"); Console.WriteLine("3. Edit an Order"); Console.WriteLine("4. Remove an Order"); Console.WriteLine("5. Quit"); Console.WriteLine("*"); Console.WriteLine("*******************************************"); Console.Write("\nEnter selection: "); string userInput = Console.ReadLine(); switch (userInput) { case "1": DisplayOrderWorkflow displayWorkflow = new DisplayOrderWorkflow(); displayWorkflow.Execute(); break; case "2": AddOrderWorkflow addOrderWorkflow = new AddOrderWorkflow(); addOrderWorkflow.Execute(); break; case "3": EditOrderWorkflow editOrderWorkflow = new EditOrderWorkflow(); editOrderWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeOrderWorkflow = new RemoveOrderWorkflow(); removeOrderWorkflow.Execute(); break; case "5": return; } }
public static void Start() { while (true) { Console.Clear(); Console.WriteLine("Flooring Program"); Console.WriteLine("======================="); Console.WriteLine("1. Display an Order"); Console.WriteLine("2. Add an Order"); Console.WriteLine("3. Edit and Order"); Console.WriteLine("4. Remove an Order"); Console.WriteLine("\nQ to Quit"); Console.Write("\nEnter Selection: "); string userInput = Console.ReadLine().ToUpper(); switch (userInput) { case "1": OrderLookupWorkflow lookup = new OrderLookupWorkflow(); lookup.Execute(); break; case "2": AddOrderWorkflow add = new AddOrderWorkflow(); add.Execute(); break; case "3": EditOrderWorkflow edit = new EditOrderWorkflow(); edit.Execute(); break; case "4": DeleteOrderWorkflow delete = new DeleteOrderWorkflow(); delete.Execute(); break; case "Q": return; } } }
public static void Start() { while (true) { Console.Clear(); Console.WriteLine("SWC Corp. Flooring Ordering System"); Console.WriteLine("-----------------------------------------"); Console.WriteLine("1. Display Orders"); Console.WriteLine("2. Add an Order"); Console.WriteLine("3. Edit an Order"); Console.WriteLine("4. Remove an Order"); Console.WriteLine("5. Quit"); Console.WriteLine(); Console.Write("Please enter a numbered option: "); string userInput = Console.ReadLine(); switch (userInput) { case "1": DisplayOrdersWorkflow displayWorkflow = new DisplayOrdersWorkflow(); displayWorkflow.Execute(); break; case "2": AddOrderWorkflow addWorkflow = new AddOrderWorkflow(); addWorkflow.Execute(); break; case "3": EditOrderWorkflow editWorkflow = new EditOrderWorkflow(); editWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeWorkflow = new RemoveOrderWorkflow(); removeWorkflow.Execute(); break; case "5": return; } } }
public static void Start() { while (true) { Console.Clear(); Console.WriteLine("*********************************************"); Console.WriteLine(); Console.WriteLine("1. Display Orders"); Console.WriteLine("2. Add an Order"); Console.WriteLine("3. Edit an Order"); Console.WriteLine("4. Remove an Order"); Console.WriteLine("5. Quit"); Console.WriteLine(); Console.Write("Enter selection: "); string userinput = Console.ReadLine(); switch (userinput) { case "1": OrderLookupWorkflow lookupWorkflow = new OrderLookupWorkflow(); lookupWorkflow.Execute(); break; case "2": AddNewOrderWorkflow AddOrderWorkflow = new AddNewOrderWorkflow(); AddOrderWorkflow.Execute(); break; case "3": EditOrderWorkflow EditOrder = new EditOrderWorkflow(); EditOrder.Execute(); break; case "4": RemoveOrderWorkflow RemoveOrder = new RemoveOrderWorkflow(); RemoveOrder.Execute(); break; case "5": return; } } }
public static void Start() { while (true) { Console.Clear(); Console.WriteLine("SWC Corp Flooring"); Console.WriteLine("---------------------------"); Console.WriteLine("1) Display Orders"); Console.WriteLine("2) Add An Order"); Console.WriteLine("3) Edit An Order"); Console.WriteLine("4) Remove An Order"); Console.WriteLine("\nQ to quit"); Console.Write("\nEnter selection: "); string userinput = Console.ReadLine(); switch (userinput.ToUpper()) { case "1": OrderLookupWorkflow lookupWorkflow = new OrderLookupWorkflow(); lookupWorkflow.Execute(); break; case "2": NewOrderWorkflow newOrderWorkflow = new NewOrderWorkflow(); newOrderWorkflow.Execute(); break; case "3": EditOrderWorkflow editOrderWorkflow = new EditOrderWorkflow(); editOrderWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeOrderWorkflow = new RemoveOrderWorkflow(); removeOrderWorkflow.Execute(); break; case "Q": return; } } }
public static void Start() { Console.Clear(); Console.WriteLine("****************************"); Console.WriteLine("* Flooring Mastery Project *"); Console.WriteLine("****************************"); Console.WriteLine(); Console.WriteLine("1. Display Order: "); Console.WriteLine("2. Add New Order: "); Console.WriteLine("3. Edit Order: "); Console.WriteLine("4. Remove Order: "); Console.WriteLine("\nQ to quit: "); Console.WriteLine("\nPlease enter selection: "); string userinput = Console.ReadLine(); switch (userinput) { case "1": DisplayOrderWorkflow displayWorkflow = new DisplayOrderWorkflow(); displayWorkflow.Execute(); break; case "2": AddNewOrderWorkflow addWorkflow = new AddNewOrderWorkflow(); addWorkflow.Execute(); break; case "3": EditOrderWorkflow editWorkflow = new EditOrderWorkflow(); editWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeWorkflow = new RemoveOrderWorkflow(); removeWorkflow.Execute(); break; case "Q": return; } }
private static bool MenuChoice() { string userInput = Console.ReadLine(); switch (userInput.ToUpper()) { case "1": DisplayOrdersWorkflow displayOrders = new DisplayOrdersWorkflow(); displayOrders.Execute(); break; case "2": AddOrderWorkflow addOrder = new AddOrderWorkflow(); addOrder.Execute(); break; case "3": EditOrderWorkflow editOrder = new EditOrderWorkflow(); editOrder.Execute(); break; case "4": RemoveOrderWorkflow removeOrder = new RemoveOrderWorkflow(); removeOrder.Execute(); break; case "5": CheckPricesWorkFlow checkPrices = new CheckPricesWorkFlow(); checkPrices.Execute(); break; case "Q": return(false); default: Console.WriteLine("Please enter a valid choice. Press any key to continue."); Console.ReadLine(); break; } return(true); }
public static void Start() { while (true) { Console.Clear(); Headers.MainMenuHeader(); Console.WriteLine(" 1. Display Orders"); Console.WriteLine(" 2. Add an Order"); Console.WriteLine(" 3. Edit an Order"); Console.WriteLine(" 4. Remove an Order"); Console.WriteLine("\n Q to Quit"); Console.WriteLine("\n Enter a selection:"); string userInput = Console.ReadLine().ToUpper(); switch (userInput) { case "1": DisplayOrdersWorkflow displayWorkflow = new DisplayOrdersWorkflow(); displayWorkflow.Execute(); break; case "2": AddOrderWorkflow addWorkflow = new AddOrderWorkflow(); addWorkflow.Execute(); break; case "3": EditOrderWorkflow editWorkflow = new EditOrderWorkflow(); editWorkflow.Execute(); break; case "4": RemoveOrderWorkflow removeWorkflow = new RemoveOrderWorkflow(); removeWorkflow.Execute(); break; case "Q": return; } } }