void RaiseBeforeStep(StepperMotor axis) { var handler = BeforeStep; if (handler != null) { handler(axis); } }
/// <summary> /// Raises the <see cref="MotorStopped" /> event. /// </summary> /// <param name="axis">The axis.</param> void OnMotorStopped(StepperMotor axis) { var handler = MotorStopped; if (handler != null) { handler(axis); } }