コード例 #1
0
        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();

            }
        }
コード例 #2
0
 public void Start(StregsystemController commandParser) // Starts controller class
 {
     Startup(commandParser);
 }