C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
text string

Открытые методы

Метод Описание
Input ( string txt ) : void
KeyPress ( ConsoleKeyInfo key ) : bool

Описание методов

Input() публичный абстрактный Метод

public abstract Input ( string txt ) : void
txt string
Результат void

KeyPress() публичный абстрактный Метод

public abstract KeyPress ( ConsoleKeyInfo key ) : bool
key System.ConsoleKeyInfo
Результат bool

Описание свойств

text защищенное свойство

protected string text
Результат string