C# Class CyrusBuilt.MonoPi.Components.Button.ButtonEventArgs

Button event arguments class.
Inheritance: System.EventArgs
Mostrar archivo Open project: cyrusbuilt/MonoPi Class Usage Examples

Public Methods

Method Description
ButtonEventArgs ( IButton button ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Button.ButtonEventArgs class with the button that is changing state.

IsState ( ButtonState state ) : System.Boolean

Determines whether the button is in state the specified state.

Method Details

ButtonEventArgs() public method

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Button.ButtonEventArgs class with the button that is changing state.
public ButtonEventArgs ( IButton button ) : System
button IButton /// The button that is changing state. ///
return System

IsState() public method

Determines whether the button is in state the specified state.
public IsState ( ButtonState state ) : System.Boolean
state ButtonState /// The button state to compare to. ///
return System.Boolean