Table of Contents

Class EnumRadioButtonList<T>

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

A radio button list that allows users to select a value defined by an enum.

public class EnumRadioButtonList<T> : RadioButtonList<T>, IRadioButtonListBase, IRadioButtonList<T>, IOptionWidget<T> where T : struct, Enum

Type Parameters

T

Enum type to represent with the radio button list.

Inheritance
EnumRadioButtonList<T>
Implements
Inherited Members
Extension Methods

Examples

public enum Capitol
{
	None,
	Brussels,
	[Description("Washington DC")]
	WashingtonDc,
	[Description("Buenos Aires")]
	BuenosAires,
	Lisbon,
	Cairo,
	Paris
}

var capitolRadioButtonList = new EnumRadioButtonList<Capitol>(new [] { Capitol.None });
Capitol selectedCapitol = capitolRadioButtonList.Selected;
capitolRadioButtonList.Changed += (s, e) =>
{
	engine.Log($"Capitol changed from {e.Previous} to {e.Selected}");
	selectedCapitol = e.Selected;
};

Constructors

EnumRadioButtonList(ICollection<T>)

Initializes a new instance of the EnumRadioButtonList<T>

EnumRadioButtonList(Func<T, string>, ICollection<T>)

Initializes a new instance of the EnumRadioButtonList<T>