C# Class DroidExplorer.Core.UI.CConsole.ConsoleControl

Inheritance: System.Windows.Forms.UserControl
Mostrar archivo Open project: camalot/droidexplorer Class Usage Examples

Private Properties

Property Type Description
FireConsoleInputEvent void
FireConsoleOutputEvent void
GetControlHandle System.IntPtr
InitialiseKeyMappings void
InitializeComponent void
InternalDispose void
InvalidateCaret void
ScrollHistory void
ShowHideCaret void
processInterace_OnProcessError void
processInterace_OnProcessExit void
processInterace_OnProcessInput void
processInterace_OnProcessOutput void
richTextBoxConsole_GotFocus void
richTextBoxConsole_HandleCreated void
richTextBoxConsole_KeyDown void
richTextBoxConsole_MouseDown void
richTextBoxConsole_MouseUp void
richTextBoxConsole_SelectionChanged void

Public Methods

Method Description
ClearOutput ( ) : void

Clears the output.

ConsoleControl ( ) : System

Initializes a new instance of the ConsoleControl class.

StartProcess ( string fileName, string arguments ) : void

Runs a process.

StopProcess ( ) : void

Stops the process.

WriteInput ( string input ) : void
WriteInput ( string input, Color color, bool echo ) : void

Writes the input to the console control.

WriteOutput ( string output ) : void
WriteOutput ( string output, Color color ) : void

Writes the output to the console control.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
FireConsoleInputEvent ( string content ) : void

Fires the console input event.

FireConsoleOutputEvent ( string content ) : void

Fires the console output event.

GetControlHandle ( Control ctrl ) : IntPtr
InitialiseKeyMappings ( ) : void

Initialises the key mappings.

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

InternalDispose ( bool disposing ) : void
InvalidateCaret ( ) : void
ScrollHistory ( ) : void
ShowHideCaret ( ) : void
processInterace_OnProcessError ( object sender, ProcessEventArgs args ) : void

Handles the OnProcessError event of the processInterace control.

processInterace_OnProcessExit ( object sender, ProcessEventArgs args ) : void

Handles the OnProcessExit event of the processInterace control.

processInterace_OnProcessInput ( object sender, ProcessEventArgs args ) : void

Handles the OnProcessInput event of the processInterace control.

processInterace_OnProcessOutput ( object sender, ProcessEventArgs args ) : void

Handles the OnProcessOutput event of the processInterace control.

richTextBoxConsole_GotFocus ( object sender, EventArgs e ) : void
richTextBoxConsole_HandleCreated ( object sender, EventArgs e ) : void
richTextBoxConsole_KeyDown ( object sender, KeyEventArgs e ) : void

Handles the KeyDown event of the richTextBoxConsole control.

richTextBoxConsole_MouseDown ( object sender, MouseEventArgs e ) : void
richTextBoxConsole_MouseUp ( object sender, MouseEventArgs e ) : void
richTextBoxConsole_SelectionChanged ( object sender, EventArgs e ) : void

Method Details

ClearOutput() public method

Clears the output.
public ClearOutput ( ) : void
return void

ConsoleControl() public method

Initializes a new instance of the ConsoleControl class.
public ConsoleControl ( ) : System
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

StartProcess() public method

Runs a process.
public StartProcess ( string fileName, string arguments ) : void
fileName string Name of the file.
arguments string The arguments.
return void

StopProcess() public method

Stops the process.
public StopProcess ( ) : void
return void

WriteInput() public method

public WriteInput ( string input ) : void
input string
return void

WriteInput() public method

Writes the input to the console control.
public WriteInput ( string input, Color color, bool echo ) : void
input string The input.
color Color The color.
echo bool if set to true echo the input.
return void

WriteOutput() public method

public WriteOutput ( string output ) : void
output string
return void

WriteOutput() public method

Writes the output to the console control.
public WriteOutput ( string output, Color color ) : void
output string The output.
color Color The color.
return void