Table of Contents

Class Dialog

Namespace
Skyline.DataMiner.Utils.InteractiveAutomationScript
Assembly
Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll

A dialog represents a single window that can be shown. You can show widgets in the window by adding them to the dialog. The dialog uses a grid to determine the layout of its widgets.

public abstract class Dialog
Inheritance
Dialog
Derived
Extension Methods

Constructors

Dialog(IEngine)

Initializes a new instance of the Dialog class.

Properties

AllowOverlappingWidgets

Gets or sets a value indicating whether overlapping widgets are allowed or not. Can be used in case you want to add multiple widgets to the same cell in the dialog. You can use the Margin property on the widgets to place them apart.

ColumnCount

Gets the number of columns of the grid layout.

Engine

Gets the link to the SLAutomation process.

Height

Gets or sets the fixed height (in pixels) of the dialog.

IsEnabled

Gets or sets a value indicating whether the interactive widgets within the dialog are enabled or not.

MaxHeight

Gets or sets the maximum height (in pixels) of the dialog.

MaxWidth

Gets or sets the maximum width (in pixels) of the dialog.

MinHeight

Gets or sets the minimum height (in pixels) of the dialog.

MinWidth

Gets or sets the minimum width (in pixels) of the dialog.

RowCount

Gets the number of rows in the grid layout.

Title

Gets or sets the title at the top of the window.

Widgets

Gets widgets that are added to the dialog.

Width

Gets or sets the fixed width (in pixels) of the dialog.

Methods

AddSection(Section, SectionLayout)

Adds the widgets from the section to the dialog.

AddSection(Section, int, int)

Adds the widgets from the section to the dialog.

AddWidget(Widget, IWidgetLayout)

Adds a widget to the dialog.

AddWidget(Widget, int, int, HorizontalAlignment, VerticalAlignment)

Adds a widget to the dialog.

AddWidget(Widget, int, int, int, int, HorizontalAlignment, VerticalAlignment)

Adds a widget to the dialog.

Clear()

Removes all widgets from the dialog.

GetWidgetLayout(Widget)

Gets the layout of the widget in the dialog.

RemoveWidget(Widget)

Removes a widget from the dialog.

SetColumnWidth(int, int)

Applies a fixed width (in pixels) to a column.

SetColumnWidthAuto(int)

The width of the column will be automatically adapted to the widest widget in that column.

SetColumnWidthStretch(int)

The column will have the largest possible width, depending on the width of the other columns.

SetRowHeight(int, int)

Applies a fixed height (in pixels) to a row.

SetRowHeightAuto(int)

The height of the row will be automatically adapted to the highest widget in that row.

SetRowHeightStretch(int)

The row will have the largest possible height, depending on the height of the other rows.

SetWidgetLayout(Widget, IWidgetLayout)

Sets the layout of the widget in the dialog.

Show(bool)

Shows the dialog window. Also loads changes and triggers events when requireResponse is true.

Events

Back

Triggered when the back button of the dialog is pressed.

Forward

Triggered when the forward button of the dialog is pressed.

Interacted

Triggered when there is any user interaction.