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

Inheritance: UserControl
Show file Open project: aiclub/Mohawk_Battleship Class Usage Examples

Public Methods

Method Description
ButtonControl ( string text, ButtonSelect selectEvent ) : System
Input ( string txt ) : void
KeyPress ( ConsoleKeyInfo key ) : bool

Method Details

ButtonControl() public method

public ButtonControl ( string text, ButtonSelect selectEvent ) : System
text string
selectEvent ButtonSelect
return System

Input() public method

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

KeyPress() public method

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