C# Class Net.Bertware.Bukkitgui2.Controls.ConsoleInput.ConsoleInput

Inheritance: MetroFramework.Controls.MetroTextBox
Exibir arquivo Open project: Bertware/bukkitgui2

Public Methods

Method Description
AddAutocompleteSource ( AutoCompleteSourceDelegate d ) : void
ConsoleInput ( ) : System

Add event handlers on creation

Protected Methods

Method Description
OnCommandSent ( string s ) : void
ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Override default key handling to catch tab keys, and run autocompletion upon tab press.

Private Methods

Method Description
AutoComplete ( ) : void

Auto complete a player name or command (if there's 1 option) or show a list of possibilities

AutoCompleteFromContextMenu ( object sender, EventArgs e ) : void

Auto complete a command or name from the context menu

HandleKeyUp ( object sender, KeyEventArgs e ) : void

Handle a keypress

HistoryGoDown ( ) : void
HistoryGoUp ( ) : void
ProcessHandler_ServerStarted ( ) : void

Gain focus on server start

ResetContextMenu ( ) : void

Reset the context menu

SubmitCommand ( ) : void

Raise the commandsent event and reset the text

getAutoCompleteContent ( ) : List

Method Details

AddAutocompleteSource() public method

public AddAutocompleteSource ( AutoCompleteSourceDelegate d ) : void
d AutoCompleteSourceDelegate
return void

ConsoleInput() public method

Add event handlers on creation
public ConsoleInput ( ) : System
return System

OnCommandSent() protected method

protected OnCommandSent ( string s ) : void
s string
return void

ProcessCmdKey() protected method

Override default key handling to catch tab keys, and run autocompletion upon tab press.
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
return bool