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

Inheritance: System.Windows.Forms.UserControl
Afficher le fichier Open project: camalot/droidexplorer Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

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

Clears the output.
public ClearOutput ( ) : void
Résultat void

ConsoleControl() public méthode

Initializes a new instance of the ConsoleControl class.
public ConsoleControl ( ) : System
Résultat System

Dispose() protected méthode

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

StartProcess() public méthode

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

StopProcess() public méthode

Stops the process.
public StopProcess ( ) : void
Résultat void

WriteInput() public méthode

public WriteInput ( string input ) : void
input string
Résultat void

WriteInput() public méthode

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.
Résultat void

WriteOutput() public méthode

public WriteOutput ( string output ) : void
output string
Résultat void

WriteOutput() public méthode

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