C# 클래스 CyrusBuilt.MonoPi.Components.Switches.SwitchBase

Base class for switch component abstractions.
상속: ComponentBase, ISwitch
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 메소드들

메소드 설명
IsState ( SwitchState state ) : System.Boolean

Determines whether the state of this instance is the specified state.

보호된 메소드들

메소드 설명
OnSwitchStateChanged ( SwitchStateChangeEventArgs e ) : void

Raises the switch state changed event.

SwitchBase ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Switches.SwitchBase class. This is the default constructor.

메소드 상세

IsState() 공개 메소드

Determines whether the state of this instance is the specified state.
public IsState ( SwitchState state ) : System.Boolean
state SwitchState /// The state to compare to. ///
리턴 System.Boolean

OnSwitchStateChanged() 보호된 메소드

Raises the switch state changed event.
protected OnSwitchStateChanged ( SwitchStateChangeEventArgs e ) : void
e SwitchStateChangeEventArgs /// The event arguments. ///
리턴 void

SwitchBase() 보호된 메소드

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Switches.SwitchBase class. This is the default constructor.
protected SwitchBase ( ) : System
리턴 System