/// <summary> /// Raises the motor state changed event. /// </summary> /// <param name="e"> /// The event arguments. /// </param> protected virtual void OnMotorStateChanged(MotorStateChangeEventArgs e) { if (this.StateChanged != null) { this.StateChanged(this, e); } }