C# Class CyrusBuilt.MonoPi.Components.Motors.MotorStateChangeEventArgs

Motor state change event arguments class.
Inheritance: System.EventArgs
Mostra file Open project: cyrusbuilt/MonoPi Class Usage Examples

Public Methods

Method Description
MotorStateChangeEventArgs ( MotorState oldState, MotorState newState ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Motors.MotorStateChangeEventArgs class with the old and new states.

Method Details

MotorStateChangeEventArgs() public method

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Motors.MotorStateChangeEventArgs class with the old and new states.
public MotorStateChangeEventArgs ( MotorState oldState, MotorState newState ) : System
oldState MotorState /// The state the motor was in prior to the change. ///
newState MotorState /// The current state of the motor since the change occurred. ///
return System