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.
파일 보기 프로젝트 열기: aiclub/Mohawk_Battleship 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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