C# Class GitForce.FormGitRun

显示文件 Open project: gdevic/GitForce Class Usage Examples

Public Methods

Method Description
FormGitRun ( string cmd, string args ) : System

Class constructor that also pre-sets the command and argument to be run

GetResult ( ) : ExecResult

Returns the result structure from running a job

Protected Methods

Method Description
ProcessCmdKey ( Message &msg, Keys keyData ) : bool

When the user presses ESC key, close the dialog, but *only* if the git operation is completed. We need to hook into the key chain and test the completion by checking the button text. The text changes depending on the execution status.

Private Methods

Method Description
BtCancelClick ( object sender, EventArgs e ) : void

User presses a cancel button. This is a multi-function button that starts as "Cancel"...

CheckAutocloseCheckedChanged ( object sender, EventArgs e ) : void

User clicked on the autoclose checkbox, changed the checked state Update preferences with the new state

CopyAction ( object sender, EventArgs e ) : void

Context menu to copy selected text onto the clipboard

FormGitRunFormClosing ( object sender, FormClosingEventArgs e ) : void

Form is closing.

FormGitRunShown ( object sender, EventArgs e ) : void

Start running the preset command at the time form is first shown

PComplete ( ExecResult result ) : void

Callback that handles process completion event

PStderr ( String message ) : void

Callback that handles process printing to stderr. Prints the stderr to a log window.

PStdout ( String message ) : void

Callback that handles process printing to stdout

SelectAllAction ( object sender, EventArgs e ) : void

Context menu to select all text

StopProgress ( ) : void

Call this function when the command completed, or is about to complete. It signals to the user the end of command by enabling the text box and stopping the progress indicator.

TextStdoutMouseUp ( object sender, MouseEventArgs e ) : void

Context menu for the text box (which is read-only, so we can only select and copy text from it)

TimerProgressTick ( object sender, EventArgs e ) : void

Use timer to animate progress indicator.

textLinkClicked ( object sender, LinkClickedEventArgs e ) : void

Called when the user clicks on an HTML link inside the output text.

Method Details

FormGitRun() public method

Class constructor that also pre-sets the command and argument to be run
public FormGitRun ( string cmd, string args ) : System
cmd string
args string
return System

GetResult() public method

Returns the result structure from running a job
public GetResult ( ) : ExecResult
return ExecResult

ProcessCmdKey() protected method

When the user presses ESC key, close the dialog, but *only* if the git operation is completed. We need to hook into the key chain and test the completion by checking the button text. The text changes depending on the execution status.
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg Message
keyData Keys
return bool