C# Class ConsoleControl.ConsoleControl

Inheritance: System.Windows.Forms.UserControl
ファイルを表示 Open project: Gainedge/BetterExplorer Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

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

Private Methods

Method 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 method

public ChangeFolder ( string Folder, bool IsFileSystem ) : void
Folder string
IsFileSystem bool
return void

ClearConsole() public method

public ClearConsole ( ) : void
return void

ConsoleControl() public method

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

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

EnqueleInput() public method

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

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e EventArgs
return void

OnSizeChanged() protected method

protected OnSizeChanged ( EventArgs e ) : void
e EventArgs
return void

StartPowerShell() public method

Runs a process.
public StartPowerShell ( ) : void
return void

StopProcess() public method

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