2using System.Collections.Generic;
30 #region Implementation of IWorkWithSampleLists
41 #region Implementation of IDirectDeviceAccess
52 Trace(
"** Start device list dump");
53 foreach (var someDev
in value)
55 Trace($
"{someDev.Name} of type {someDev.GetType().FullName}, connection state {mDeviceInfoProvider.Single(info => info.Device == someDev).ConnectionState}");
57 Trace(
"** End device list dump");
67 #region Implementation of ITraceLogger
69 public event EventHandler<TraceWriteEventArgs>
TraceWrite;
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,...
Implement this interface if you need direct access to the list of configured devices.
Providing an opportunity for future extension. Made available via dependency injection.
For future extension (categories, priorities...)
Writes some text to the trace log.
For plugins that want to manipulate or run sample lists.
Shows how you can directly interact with all configured devices.
Icon ButtonIcon
Shown in the button, preferred size 22x22.
readonly IDeviceInfoProvider mDeviceInfoProvider
EventHandler< TraceWriteEventArgs > TraceWrite
IEnumerable< IDevice > ConfiguredDevices
List of IDevice for all configured devices in Chronos.
DeviceSurveillance(IDeviceInfoProvider infoProv)
Requesting the device info provider via the constructor, not via "Helpers" - makes it easier to write...
string ButtonCaption
Shown on the sample list page.
void DoYourJob()
Will be triggered when the user clicks on the button. The button will be disabled until you return fr...