예제 #1
0
 public void Loop()
 {
     Running           = true;
     C.CancelKeyPress += new ConsoleCancelEventHandler(C_CancelKeyPress);
     while (Running)
     {
         string instruction = CurrentView.Loop();
         if (instruction == null)
         {
             continue;
         }
         if (!ProcessInstruction(instruction))
         {
             C.WriteLine("Could not handle {0}", instruction);
         }
     }
 }