C# Class CyrusBuilt.MonoPi.Components.Power.PowerStateChangeEventArgs

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

Public Methods

Method Description
PowerStateChangeEventArgs ( PowerState oldState, PowerState newState ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Power.PowerStateChangeEventArgs class with the old and new states.

Method Details

PowerStateChangeEventArgs() public method

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Power.PowerStateChangeEventArgs class with the old and new states.
public PowerStateChangeEventArgs ( PowerState oldState, PowerState newState ) : System
oldState PowerState /// The previous state of the device. ///
newState PowerState /// The new state of the device. ///
return System