C# Class ConsoleControl.ConsoleControl

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

Private Properties

Свойство Type Description
ClearOutput void
FireConsoleInputEvent void
FireConsoleOutputEvent void
InitialiseKeyMappings void
InitializeComponent void
SendCtrlC void
SendMessage int
SendTab void
SetForegroundWindow bool
WriteInput void
WriteOutput void
btnClear_Click void
btnCopy_Click void
btnPaste_Click void
keybd_event void
processInterace_OnProcessError void
processInterace_OnProcessExit void
processInterace_OnProcessInput void
processInterace_OnProcessOutput void
richTextBoxConsole_KeyDown void
richTextBoxConsole_MouseDown void
richTextBoxConsole_TextChanged void

Méthodes publiques

Méthode Description
ChangeFolder ( string Folder, bool IsFileSystem ) : void
ClearConsole ( ) : void
ConsoleControl ( ) : BExplorer.Shell

Initializes a new instance of the ConsoleControl class.

EnqueleInput ( string input ) : void
StartPowerShell ( ) : void

Runs a process.

StopProcess ( ) : void

Stops the process.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnResize ( EventArgs e ) : void
OnSizeChanged ( EventArgs e ) : void

Private Methods

Méthode Description
ClearOutput ( bool isSendClear = true, bool isClearAfterEnter = true ) : void
FireConsoleInputEvent ( string content ) : void

Fires the console input event.

FireConsoleOutputEvent ( string content ) : void

Fires the console output event.

InitialiseKeyMappings ( ) : void

Initializes the key mappings.

InitializeComponent ( ) : void

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

SendCtrlC ( IntPtr hWnd ) : void
SendMessage ( IntPtr hWnd, int wMsg, IntPtr wParam, IntPtr lParam ) : int
SendTab ( IntPtr hWnd ) : void
SetForegroundWindow ( IntPtr hWnd ) : bool
WriteInput ( string input, Color color, Boolean isRaiseEvent = true ) : void

Writes the input to the console control.

WriteOutput ( string output, Color color ) : void

Writes the output to the console control.

btnClear_Click ( object sender, EventArgs e ) : void
btnCopy_Click ( object sender, EventArgs e ) : void
btnPaste_Click ( object sender, EventArgs e ) : void
keybd_event ( byte bVk, byte bScan, uint dwFlags, uint dwExtraInfo ) : void
processInterace_OnProcessError ( object sender, ProcessInterface args ) : void

Handles the OnProcessError event of the processInterace control.

processInterace_OnProcessExit ( object sender, ProcessInterface args ) : void

Handles the OnProcessExit event of the processInterace control.

processInterace_OnProcessInput ( object sender, ProcessInterface args ) : void

Handles the OnProcessInput event of the processInterace control.

processInterace_OnProcessOutput ( object sender, ProcessInterface args ) : void

Handles the OnProcessOutput event of the processInterace control.

richTextBoxConsole_KeyDown ( object sender, KeyEventArgs e ) : void

Handles the KeyDown event of the richTextBoxConsole control.

richTextBoxConsole_MouseDown ( object sender, MouseEventArgs e ) : void
richTextBoxConsole_TextChanged ( object sender, EventArgs e ) : void

Method Details

ChangeFolder() public méthode

public ChangeFolder ( string Folder, bool IsFileSystem ) : void
Folder string
IsFileSystem bool
Résultat void

ClearConsole() public méthode

public ClearConsole ( ) : void
Résultat void

ConsoleControl() public méthode

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

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

EnqueleInput() public méthode

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

OnResize() protected méthode

protected OnResize ( EventArgs e ) : void
e EventArgs
Résultat void

OnSizeChanged() protected méthode

protected OnSizeChanged ( EventArgs e ) : void
e EventArgs
Résultat void

StartPowerShell() public méthode

Runs a process.
public StartPowerShell ( ) : void
Résultat void

StopProcess() public méthode

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