Table of Contents

Method WasButtonPressed

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

WasButtonPressed(string)

Returns a value indicating whether a specific button was clicked.

public bool WasButtonPressed(string key)

Parameters

key string

The destination variable that is linked to the button.

Returns

bool

true if the button was clicked; otherwise, false.

Examples

UIResults uir = null;
do
{
	UIBuilder uib = new UIBuilder();
	uib.RequireResponse = true;
	uib.Width = 800;
	uib.Height = 600;
	uib.RowDefs = "100;100;100";
	uib.ColumnDefs="100;100;100";

	UIBlockDefinition blockButton = new UIBlockDefinition();
	blockButton.Type = UIBlockType.Button;
	blockButton.Text = "Go";
	blockButton.DestVar = "buttonGo";
	blockButton.Row = 0;
	blockButton.Column = 0;

	uib.AppendBlock(blockButton);

	uir = engine.ShowUI(uib);
} while (!uir.WasButtonPressed("buttonGo"));