コード例 #1
0
 public void Run()
 {
     Thread.Sleep(1000);
     while (true)
     {
         while (RealProgram.OutputQueue.TryDequeue(out var fromQueue))
         {
             OutputLog.AddRow(fromQueue);
             WriteLine(fromQueue);
         }
         if (RealProgram.Running)
         {
             WriteLine("Input command (help to see available commands):");
             RealProgram.InputCommand(ReadLine());
         }
     }
 }