static void Main(string[] args) { if (args.Length > 0) { // There is input, processing it actionSelection(args[0]); } else { // No input, presenting the tool and then asking for instruction actionSelection("--information"); // Asking for an option string option; do { MyConsole.display("Please, enter a commande : "); option = MyConsole.readInput().Replace(" ", string.Empty); // Processing the option actionSelection(option); }while (!option.Equals("--quit")); MyConsole.readInput(); } }
f; // Stressors level induced by a reference processing // Constructor : initializing the indices limits ... // ...and input variables values public Model(ExcelFile excelFile) { readInputs(excelFile); if (checkInputConstraints()) { MyConsole.displayResult("Do you wish to show the input read ? Yes(Y)/ No (N)"); if (MyConsole.readInput().Equals("Y") || MyConsole.readInput().ToLower().Equals("yes")) { showInputs(); } } else { MyConsole.displayError("ERROR : input are not consitent "); } }
public static void schedule() { if (excelFile == null || model == null) { MyConsole.displayError("model and/or IO file are not initialized yet\n" + "Please type --readIOFile"); } else { MyConsole.display("Select the scheduling method : --GRAS\n" + " --SPT\n" + " --LPT\n" + " --EDD\n" + " --CR\n" + " --SES\n" + " --SALCK\n" + " Abort(A)"); string methodChoice = MyConsole.readInput().Replace(" ", string.Empty); applySecMethod(model, excelFile, methodChoice); } }