Table of Contents

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.

IsRunning

Gets a value indicating whether the event loop has been started.

Methods

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.

Run(Dialog)

Starts the application event loop. Updates the displayed dialog after each user interaction. Only user interaction on widgets with the WantsOnChange property set to true will cause updates. Use RequestManualMode(Action) if you want to manually control when the dialog is updated.

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.