Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
MockPlugin.Misc.StatusViewControl Class Reference

This control is used to show the status for our MockDevice. More...

+ Inheritance diagram for MockPlugin.Misc.StatusViewControl:
+ Collaboration diagram for MockPlugin.Misc.StatusViewControl:

Public Member Functions

 StatusViewControl ()
 

Properties

MockDevice Device [get, set]
 
- Properties inherited from AxelSemrau.Chronos.Plugin.IStatusView< MockDevice >
TDevice Device [get, set]
 Gives access to the device. Will be set after the class has been instantiated.
 

Private Member Functions

void timer1_Tick (object sender, EventArgs e)
 

Private Attributes

MockDevice mDev
 

Detailed Description

This control is used to show the status for our MockDevice.

Definition at line 14 of file StatusViewControl.cs.

Constructor & Destructor Documentation

◆ StatusViewControl()

MockPlugin.Misc.StatusViewControl.StatusViewControl ( )

Definition at line 18 of file StatusViewControl.cs.

19 {
20 InitializeComponent();
21 }

Member Function Documentation

◆ timer1_Tick()

void MockPlugin.Misc.StatusViewControl.timer1_Tick ( object sender,
EventArgs e )
private

Definition at line 29 of file StatusViewControl.cs.

30 {
31 SimpleLabel.Text = string.Format(LocalizeMockPlugin.StatusViewControl_timer1_Tick_,DateTime.Now.ToString("HH:mm:ss"),mDev?.Name);
32 }
string Name
User-selected name for the device instance.
Definition MockDevice.cs:88

References MockPlugin.Misc.StatusViewControl.mDev, and MockPlugin.Device.MockDevice.Name.

Member Data Documentation

◆ mDev

MockDevice MockPlugin.Misc.StatusViewControl.mDev
private

Definition at line 16 of file StatusViewControl.cs.

Referenced by MockPlugin.Misc.StatusViewControl.timer1_Tick().

Property Documentation

◆ Device

MockDevice MockPlugin.Misc.StatusViewControl.Device
getset

Definition at line 23 of file StatusViewControl.cs.

24 {
25 get => mDev;
26 set => mDev = value;
27 }

The documentation for this class was generated from the following file: