C# Class AGENT.Contrib.Hardware.AgentButtonListener

A simple class to abstract away the use of InterruptPorts (aka Buttons)
Inheritance: IDisposable
Datei anzeigen Open project: nothingmn/AGENT.Contrib Class Usage Examples

Public Methods

Method Description
AgentButtonListener ( ) : System
Dispose ( ) : void
IsListeningTo ( AgentButton button ) : bool
StartListeningTo ( ) : void
StartListeningTo ( AgentButton b ) : void
StopListeningTo ( ) : void
StopListeningTo ( AgentButton b ) : void

Private Methods

Method Description
Dispose ( bool disposing ) : void
OnInterrupt ( uint data1, uint data2, System.DateTime time ) : void

Method Details

AgentButtonListener() public method

public AgentButtonListener ( ) : System
return System

Dispose() public method

public Dispose ( ) : void
return void

IsListeningTo() public method

public IsListeningTo ( AgentButton button ) : bool
button AgentButton
return bool

StartListeningTo() public method

public StartListeningTo ( ) : void
return void

StartListeningTo() public method

public StartListeningTo ( AgentButton b ) : void
b AgentButton
return void

StopListeningTo() public method

public StopListeningTo ( ) : void
return void

StopListeningTo() public method

public StopListeningTo ( AgentButton b ) : void
b AgentButton
return void