C# 클래스 CyrusBuilt.MonoPi.Components.Power.PowerBase

Base class for power control device abstraction components.
상속: ComponentBase, IPower
파일 보기 프로젝트 열기: cyrusbuilt/MonoPi

공개 메소드들

메소드 설명
Off ( ) : void

Switches the device off.

On ( ) : void

Switches the device on.

보호된 메소드들

메소드 설명
OnStateChanged ( PowerStateChangeEventArgs e ) : void

Raises the StateChanged event.

PowerBase ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Components.Power.PowerBase class. This is the default constructor.

메소드 상세

Off() 공개 메소드

Switches the device off.
public Off ( ) : void
리턴 void

On() 공개 메소드

Switches the device on.
public On ( ) : void
리턴 void

OnStateChanged() 보호된 메소드

Raises the StateChanged event.
protected OnStateChanged ( PowerStateChangeEventArgs e ) : void
e PowerStateChangeEventArgs /// The event arguments. ///
리턴 void

PowerBase() 보호된 메소드

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