Skip to content
ConsoleMonster
Class

AppScreensFluent

ConsoleMonster.Interactive

Namespace
ConsoleMonster.Interactive
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of AppScreens, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • AppScreensFluent

Methods

public static AppScreens BackKey(AppScreens appScreens, KeyChord item) #

Adds an item to AppScreens.BackKeys: Keys that return to the previous screen when the focused input does not use them (default Escape and Backspace).

Parameters

appScreens ConsoleMonster.Interactive.AppScreens required
The instance.
item ConsoleMonster.Input.KeyChord required
The item.

Returns

AppScreens The same instance.
public static AppScreens BackKeys(AppScreens appScreens, IEnumerable<KeyChord> items) #

Adds items to AppScreens.BackKeys: Keys that return to the previous screen when the focused input does not use them (default Escape and Backspace).

Parameters

appScreens ConsoleMonster.Interactive.AppScreens required
The instance.
items System.Collections.Generic.IEnumerable<ConsoleMonster.Input.KeyChord> required
The items, in order.

Returns

AppScreens The same instance.
public static AppScreens Current(AppScreens appScreens, Action<AppScreen> configure) #

Configures AppScreens.Current in place: The current screen.

Parameters

appScreens ConsoleMonster.Interactive.AppScreens required
The instance.
configure System.Action<ConsoleMonster.Interactive.AppScreen> required
Configures the value.

Returns

AppScreens The same instance.
public static AppScreens StateKey(AppScreens appScreens, string value) #

Sets AppScreens.StateKey: The state key holding the current screen's key (default Screen).

Parameters

appScreens ConsoleMonster.Interactive.AppScreens required
The instance.
value string required
The value.

Returns

AppScreens The same instance.

Examples

// C# initializer or property    // C# fluent
appScreens.StateKey = value;     appScreens.StateKey(value);