private void OnInstructionSent(InstructionSentEventArgs e) { if (InstructionSent != null) { InstructionSent(this, e); } }
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); }