Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
StatusViewControl.cs
Go to the documentation of this file.
1using System;
2using System.Windows.Forms;
4using MockPlugin.Properties;
5
9namespace MockPlugin.Misc
10{
14 public partial class StatusViewControl : UserControl, AxelSemrau.Chronos.Plugin.IStatusView<MockDevice>
15 {
17
19 {
20 InitializeComponent();
21 }
22
24 {
25 get => mDev;
26 set => mDev = value;
27 }
28
29 private void timer1_Tick(object sender, EventArgs e)
30 {
31 SimpleLabel.Text = string.Format(LocalizeMockPlugin.StatusViewControl_timer1_Tick_,DateTime.Now.ToString("HH:mm:ss"),mDev?.Name);
32 }
33 }
34}
Things provided by an AxelSemrau program or library. Do not put your own code into this namespace,...
A fake device. This namespace contains the fake device driver and auxiliary classes for settings,...
Contains things that do not fit into the other categories.
A chronos plugin implementation for a fake device. We pretend we are controlling a mixture of coffee ...
Definition MockDevice.cs:53
string Name
User-selected name for the device instance.
Definition MockDevice.cs:88
This control is used to show the status for our MockDevice.
void timer1_Tick(object sender, EventArgs e)