Chronos Plugins 5.11.0
This documentation covers the plugin interfaces definitions and an example implementation.
Loading...
Searching...
No Matches
LargeDeviceStatusView.xaml.cs
Go to the documentation of this file.
1using System.Windows;
2using System.Windows.Controls;
5
7{
11 // ReSharper disable once UnusedMember.Global
12 public partial class LargeDeviceStatusView : UserControl, ILargeStatusView<MockDevice>
13 {
15 {
16 InitializeComponent();
17 DataContext = new FakeStatusViewModel();
18 }
19
20 public MockDevice Device { get; set; }
21
22 public object Title => $"Large status view for device {(Device?.Name ?? "N/A")}";
23
24 public Visibility Visible { get; }
25 }
26
31 {
32 // ReSharper disable once UnusedMember.Global
33 public string FakeStatus { get; set; } = "Just some fake status";
34 }
35}
Classes and interfaces that are meant for plugins. The classes and interfaces below this namespace ar...
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
Visibility Visible
Visibility of the tab page.
MockDevice Device
Gives access to the device. Will be set after the class has been instantiated.
object Title
Title for the tab page. Can be anything that is ok for a WPF header.
Fake ViewModel with a fake status.