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.
ファイルを表示 Open project: aiclub/Mohawk_Battleship Class Usage Examples

Protected Properties

Property Type Description
text string

Public Methods

Method Description
Input ( string txt ) : void
KeyPress ( ConsoleKeyInfo key ) : bool

Method Details

Input() public abstract method

public abstract Input ( string txt ) : void
txt string
return void

KeyPress() public abstract method

public abstract KeyPress ( ConsoleKeyInfo key ) : bool
key System.ConsoleKeyInfo
return bool

Property Details

text protected_oe property

protected string text
return string