C# Class MBC.App.Terminal.Controls.UserControl

The UserControl class is used as a base for a user control located on the terminal window. Each UserControl is linked with a ControlLayout and displays are made with the layout this UserControl is linked to. Generally, all UserControl objects have text, whether they are buttons, checkboxes, progress bars, string input, etc. When extending this class, note that the enter key is used in the BattleshipConsole for whole string inputs. Do not handle an enter key press (return false in KeyPress(ConsoleKeyInfo) if the input string is required for this control.
Afficher le fichier Open project: aiclub/Mohawk_Battleship Class Usage Examples

Protected Properties

Свойство Type Description
text string

Méthodes publiques

Méthode Description
Input ( string txt ) : void
KeyPress ( ConsoleKeyInfo key ) : bool

Method Details

Input() public abstract méthode

public abstract Input ( string txt ) : void
txt string
Résultat void

KeyPress() public abstract méthode

public abstract KeyPress ( ConsoleKeyInfo key ) : bool
key System.ConsoleKeyInfo
Résultat bool

Property Details

text protected_oe property

protected string text
Résultat string