public void Startup(StregsystemController parser) // General prompt for executing every command, clears on keypress afterwards { while (programRunning) { Console.Clear(); PrintActiveProducts(); Console.WriteLine("Enter a command"); AdminCommands(); NormalCommands(); parser.ParseCommand(Console.ReadLine()); Console.ReadKey(); } }
public void Start(StregsystemController commandParser) // Starts controller class { Startup(commandParser); }