Chronos Plugins 5.11.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]
 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 }

References mDev.

Member Data Documentation

◆ mDev

MockDevice MockPlugin.Misc.StatusViewControl.mDev
private

Definition at line 16 of file StatusViewControl.cs.

Referenced by timer1_Tick().

Property Documentation

◆ Device

MockDevice MockPlugin.Misc.StatusViewControl.Device
getset

Gives access to the device. Will be set after the class has been instantiated.

Implements AxelSemrau.Chronos.Plugin.IStatusView< TDevice >.

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: