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

Inheritance: MetroFramework.Controls.MetroTextBox
Afficher le fichier Open project: Bertware/bukkitgui2

Méthodes publiques

Méthode Description
AddAutocompleteSource ( AutoCompleteSourceDelegate d ) : void
ConsoleInput ( ) : System

Add event handlers on creation

Méthodes protégées

Méthode 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

Méthode 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 méthode

public AddAutocompleteSource ( AutoCompleteSourceDelegate d ) : void
d AutoCompleteSourceDelegate
Résultat void

ConsoleInput() public méthode

Add event handlers on creation
public ConsoleInput ( ) : System
Résultat System

OnCommandSent() protected méthode

protected OnCommandSent ( string s ) : void
s string
Résultat void

ProcessCmdKey() protected méthode

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
Résultat bool