Exemplo n.º 1
0
 private void OnInstructionSent(InstructionSentEventArgs e)
 {
     if (InstructionSent != null)
     {
         InstructionSent(this, e);
     }
 }
Exemplo n.º 2
0
 private void SketchDriver_InstructionSent(object sender, InstructionSentEventArgs e)
 {
     mainWindow.WriteLine(
         "Sent {0}/{1} Direction = {2}, Distance = {3}",
         e.InstructionNumber,
         e.InstructionCount,
         e.Instruction.Direction,
         e.Instruction.Distance);
 }