Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
Helper functions for GUI related tasks. More...
Public Member Functions | |
void | OwnMyWindow (IntPtr handle) |
Make the window with the given handle owned by the Chronos main window. This prevents it from dropping behind by accident. | |
Properties | |
System.Threading.Tasks.TaskScheduler | GuiThreadScheduler [get] |
Use this scheduler to do actions on the thread that owns the main GUI. | |
System.Threading.Tasks.TaskFactory | GuiTaskFactory [get] |
For your convenience, a default task factory for tasks running on the GUI thread. | |
IWin32Window | MainWindow [get] |
If you need to set the owner window yourself or want to show message boxes. | |
bool | MainWindowEnabled [get, set] |
Allows you to temporarily disable all user interaction with the Chronos main window. | |
Dispatcher | GuiDispatcher [get] |
The dispatcher that is used for WPF operations on the main GUI thread. | |
void AxelSemrau.Chronos.Plugin.IGuiHelper.OwnMyWindow | ( | IntPtr | handle | ) |
Make the window with the given handle owned by the Chronos main window. This prevents it from dropping behind by accident.
handle |
Does not seem to work as intended if the handle belongs to a WindowInteropHelper
Referenced by MockPlugin.SampleList.MockSampleListWorker.DoYourJob().
|
get |
The dispatcher that is used for WPF operations on the main GUI thread.
Definition at line 51 of file Helpers.cs.
|
get |
For your convenience, a default task factory for tasks running on the GUI thread.
Definition at line 26 of file Helpers.cs.
Referenced by MockPlugin.Device.MockDevice.OnIsConnectedChanged().
|
get |
Use this scheduler to do actions on the thread that owns the main GUI.
Definition at line 22 of file Helpers.cs.
Referenced by MockPlugin.SampleList.MockSampleListWorker.HandleAbortButton(), MockPlugin.SampleList.MockSampleListWorker.HandleStopButton(), and MockPlugin.SampleList.MockSampleListWorker.MockSampleListWorker().
|
get |
If you need to set the owner window yourself or want to show message boxes.
Definition at line 37 of file Helpers.cs.
Referenced by MockPlugin.Device.MockDevice.Connect(), MockPlugin.Tasks.ShowSomeGreeting.DemoExecute(), MockPlugin.Device.MockDevice.Disconnect(), MockPlugin.SampleList.MockSampleListWorker.DoYourJob(), MockPlugin.Tasks.JobInspectionDemo.Execute(), MockPlugin.Tasks.ShowSomeGreeting.Execute(), MockPlugin.Tasks.ShowSomeGreeting.PostValidate(), MockPlugin.Tasks.JobInspectionDemo.PreValidate(), MockPlugin.Tasks.ShowSomeGreeting.PreValidate(), and MockPlugin.Device.MockDevice.ShowTheMessage().
|
getset |
Allows you to temporarily disable all user interaction with the Chronos main window.
Use with care. You can lock the user out if you disable it and forget to enable it (because of unhandled exceptions or similar). This is primarily meant to be used if you want to show an external processes' window in style of a modal dialog.
Definition at line 46 of file Helpers.cs.