Class Choice<T>
Give the user a selection of choices which can be made by using the arrow keys and enter key.
Implements
Inherited Members
Namespace: QFSW.QC.Actions
Assembly: QFSW.QC.dll
Syntax
public class Choice<T> : Composite, ICommandAction
Type Parameters
Name | Description |
---|---|
T | The type of the choices. |
Constructors
Choice(IEnumerable<T>, Action<T>)
Declaration
public Choice(IEnumerable<T> choices, Action<T> onSelect)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | choices | The choices to select between. |
Action<T> | onSelect | Action to invoke when a selection is made. |
Choice(IEnumerable<T>, Action<T>, Choice<T>.Config)
Declaration
public Choice(IEnumerable<T> choices, Action<T> onSelect, Choice<T>.Config config)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<T> | choices | The choices to select between. |
Action<T> | onSelect | Action to invoke when a selection is made. |
Choice.Config<> | config | The configuration to be used. |