Class InteractiveController
- Namespace
- Skyline.DataMiner.Utils.InteractiveAutomationScript
- Assembly
- Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll
Event loop of the interactive Automation script.
public class InteractiveController
- Inheritance
-
InteractiveController
- Extension Methods
Constructors
- InteractiveController(IEngine)
Initializes a new instance of the InteractiveController class. This object will manage the event loop of the interactive Automation script.
Properties
- CurrentDialog
Gets the dialog that is shown to the user.
- Engine
Gets the link to the SLManagedAutomation process.
- IsManualMode
Gets a value indicating whether the event loop is updated manually or automatically.
- ScriptAbortPopupBehavior
Gets or sets the behavior of the popup shown whenever the script is aborted. This popup is shown when the window in which the Dialogs are shown is closed by the user and asks for confirmation whether the script can be stopped or not. OnDialogLevel causes the ShowScriptAbortPopup value of the currently displayed Dialog to determine whether the popup should be shown or not. HideAlways causes the popup to never be displayed, regardless of the ShowScriptAbortPopup value of the displayed Dialog. ShowAlways causes the popup to always be displayed, regardless of the ShowScriptAbortPopup value of the displayed Dialog.
Methods
- Hide()
Hides the UI. This does not block any background logic from running. Use ShowDialog(Dialog) if you want to show the UI again.
- RequestManualMode(Action)
Switches the event loop to manual control. This mode allows the dialog to be updated without user interaction using Update(). The passed action method will be called when all events have been processed. The app returns to automatic user interaction mode when the method is exited.
- ShowDialog(Dialog)
Sets the dialog that will be shown after user interaction events are processed, or when Update() is called in manual mode.
- Stop()
Stops the application event loop. Use the Run method in order to start it again after stopping.
- Update()
Manually updates the dialog. Use this method when you want to update the dialog without user interaction. Note that no events will be raised.