C# Класс DroidExplorer.Core.UI.CConsole.ConsoleControl

Наследование: System.Windows.Forms.UserControl
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
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

Описание методов

ClearOutput() публичный Метод

Clears the output.
public ClearOutput ( ) : void
Результат void

ConsoleControl() публичный Метод

Initializes a new instance of the ConsoleControl class.
public ConsoleControl ( ) : System
Результат System

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

StartProcess() публичный Метод

Runs a process.
public StartProcess ( string fileName, string arguments ) : void
fileName string Name of the file.
arguments string The arguments.
Результат void

StopProcess() публичный Метод

Stops the process.
public StopProcess ( ) : void
Результат void

WriteInput() публичный Метод

public WriteInput ( string input ) : void
input string
Результат void

WriteInput() публичный Метод

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.
Результат void

WriteOutput() публичный Метод

public WriteOutput ( string output ) : void
output string
Результат void

WriteOutput() публичный Метод

Writes the output to the console control.
public WriteOutput ( string output, Color color ) : void
output string The output.
color Color The color.
Результат void