C# Класс CyrusBuilt.MonoPi.Components.Switches.SwitchBase

Base class for switch component abstractions.
Наследование: ComponentBase, ISwitch
Показать файл Открыть проект

Открытые методы

Метод Описание
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