|
Chronos Plugins
5.2.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
A task which does not need access to the custom device. More...
Inheritance diagram for MockPlugin.Tasks.ShowSomeGreeting:
Collaboration diagram for MockPlugin.Tasks.ShowSomeGreeting:Classes | |
| class | DefaultGreetingsAttribute |
| Simple example how to provide a combobox with standard values for a property More... | |
Public Member Functions | |
| void | PreValidate () |
| Called before the schedule construction is completed. More... | |
| void | PostValidate () |
| Called after the schedule construction is completed. More... | |
| void | Execute () |
| Pretend we are doing some work by showing a message box. More... | |
| void | DemoExecute () |
| Will be called when the task is executed in demo mode. More... | |
| string | GetTaskAction () |
| The result of this function will be shown in the timetable. More... | |
| void | UICultureChanged (System.Globalization.CultureInfo newCulture) |
| Switch the resources with localized items to the newly selected culture. More... | |
Properties | |
| string | GreetingsText = DefaultGreetingsAttribute.DefGreeting [get, set] |
| Parameter which can be edited in the method editor, with some predefined values. More... | |
| bool | OkThisIsGoodbye [get, set] |
| See in .Execute - this is just a flag to tell us if we should stop the schedule. More... | |
| Func< StopRunArgs, Task > | StopRun [get, set] |
Properties inherited from AxelSemrau.Chronos.Plugin.IStopRuns | |
| Func< StopRunArgs, Task > | StopRun [set] |
| Callback function returning a task that completes once the schedule queue was stopped. More... | |
Events | |
| Action< string > | WriteToRunlog |
| EventHandler< TraceWriteEventArgs > | TraceWrite |
Events inherited from AxelSemrau.Chronos.Plugin.IHaveRunlogOutput | |
| Action< string > | WriteToRunlog |
| Use this event to send output to the Run Control / Runlog page and, if applicable, to the runlog file. More... | |
Events inherited from AxelSemrau.Chronos.Plugin.ITraceLogger | |
| EventHandler< TraceWriteEventArgs > | TraceWrite |
| Chronos will subscribe to this event and log the text provided in the event args. More... | |
A task which does not need access to the custom device.
Definition at line 19 of file MockSimpleTask.cs.
| void MockPlugin.Tasks.ShowSomeGreeting.DemoExecute | ( | ) |
Will be called when the task is executed in demo mode.
Implements AxelSemrau.Chronos.Plugin.IDemoAwareTask.
Definition at line 82 of file MockSimpleTask.cs.
References AxelSemrau.Chronos.Plugin.Helpers.Gui, and AxelSemrau.Chronos.Plugin.IGuiHelper.MainWindow.
| void MockPlugin.Tasks.ShowSomeGreeting.Execute | ( | ) |
Pretend we are doing some work by showing a message box.
Also documents this in the runlog.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 66 of file MockSimpleTask.cs.
References MockPlugin.Tasks.ShowSomeGreeting.GreetingsText, AxelSemrau.Chronos.Plugin.Helpers.Gui, AxelSemrau.Chronos.Plugin.IGuiHelper.MainWindow, MockPlugin.Tasks.ShowSomeGreeting.OkThisIsGoodbye, MockPlugin.Tasks.ShowSomeGreeting.StopRun, MockPlugin.Tasks.ShowSomeGreeting.TraceWrite, and MockPlugin.Tasks.ShowSomeGreeting.WriteToRunlog.
| string MockPlugin.Tasks.ShowSomeGreeting.GetTaskAction | ( | ) |
The result of this function will be shown in the timetable.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 91 of file MockSimpleTask.cs.
| void MockPlugin.Tasks.ShowSomeGreeting.PostValidate | ( | ) |
Called after the schedule construction is completed.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 57 of file MockSimpleTask.cs.
References AxelSemrau.Chronos.Plugin.Helpers.Gui, and AxelSemrau.Chronos.Plugin.IGuiHelper.MainWindow.
| void MockPlugin.Tasks.ShowSomeGreeting.PreValidate | ( | ) |
Called before the schedule construction is completed.
Implements AxelSemrau.Chronos.Plugin.ITask.
Definition at line 52 of file MockSimpleTask.cs.
References AxelSemrau.Chronos.Plugin.Helpers.Gui, and AxelSemrau.Chronos.Plugin.IGuiHelper.MainWindow.
| void MockPlugin.Tasks.ShowSomeGreeting.UICultureChanged | ( | System.Globalization.CultureInfo | newCulture | ) |
Switch the resources with localized items to the newly selected culture.
| newCulture |
Definition at line 104 of file MockSimpleTask.cs.
|
getset |
Parameter which can be edited in the method editor, with some predefined values.
Definition at line 29 of file MockSimpleTask.cs.
Referenced by MockPlugin.Tasks.ShowSomeGreeting.Execute().
|
getset |
See in .Execute - this is just a flag to tell us if we should stop the schedule.
Definition at line 34 of file MockSimpleTask.cs.
Referenced by MockPlugin.Tasks.ShowSomeGreeting.Execute().
|
getset |
Definition at line 109 of file MockSimpleTask.cs.
Referenced by MockPlugin.Tasks.ShowSomeGreeting.Execute().
| EventHandler<TraceWriteEventArgs> MockPlugin.Tasks.ShowSomeGreeting.TraceWrite |
Definition at line 98 of file MockSimpleTask.cs.
Referenced by MockPlugin.Tasks.ShowSomeGreeting.Execute().
| Action<string> MockPlugin.Tasks.ShowSomeGreeting.WriteToRunlog |
Definition at line 96 of file MockSimpleTask.cs.
Referenced by MockPlugin.Tasks.ShowSomeGreeting.Execute().