Chronos Plugins 5.9.0
This documentation covers the plugin interfaces definitions and an example implementation.
|
A task which does not need access to the custom device. More...
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. | |
void | PostValidate () |
Called after the schedule construction is completed. | |
void | Execute () |
Pretend we are doing some work by showing a message box. | |
void | DemoExecute () |
Will be called when the task is executed in demo mode. | |
string | GetTaskAction () |
The result of this function will be shown in the timetable. | |
void | UICultureChanged (System.Globalization.CultureInfo newCulture) |
Switch the resources with localized items to the newly selected culture. | |
Public Member Functions inherited from AxelSemrau.Chronos.Plugin.ITask | |
Public Member Functions inherited from AxelSemrau.Chronos.Plugin.IDemoAwareTask |
Properties | |
string | GreetingsText = DefaultGreetingsAttribute.DefGreeting [get, set] |
Parameter which can be edited in the method editor, with some predefined values. | |
bool | OkThisIsGoodbye [get, set] |
See in .Execute - this is just a flag to tell us if we should stop the schedule. | |
Func< StopRunArgs, Task > | StopRun [get, set] |
Callback function returning a task that completes once the schedule queue was stopped. | |
Properties inherited from AxelSemrau.Chronos.Plugin.IStopRuns |
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. | |
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. | |
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 |
Callback function returning a task that completes once the schedule queue was stopped.
Implements AxelSemrau.Chronos.Plugin.IStopRuns.
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().