C# Class GitForce.FormShowChangelist

Shows a changelist or stash with the ability to "walk" the chain. Returns "DialogResult.No" to load a previous change Returns "DialogResult.Yes" to load a next change Otherwise returns "DialogResult.Cancel"
Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: gdevic/GitForce Class Usage Examples

Public Methods

Method Description
DriveChangelistFromListViewEx ( ListViewEx &listRev ) : void

Describe (view) selected changelist and drive up/down back propagation through the host list view

FormShowChangelist ( ) : System

Constructor, set the same font as for commit text box.

LoadChangelist ( string sha ) : void

Given a Sha string, loads that commit into the form.

Private Methods

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

User changed the show mode (format) 'This' Tag contains the SHA of a current commit

FormShowChangelistFormClosing ( object sender, FormClosingEventArgs e ) : void

On form closing, save the dialog location and size

MenuItemCopyClick ( object sender, EventArgs e ) : void

Copy selected text onto the clipboard

MenuItemDiffClick ( object sender, EventArgs e ) : void

Diff selected file versus one of several options. The root menu class' Tag contains the name of the file to diff The individual menu item class Tag contains the diff options

MenuItemRevClick ( object sender, EventArgs e ) : void

Show the revision history dialog for a selected file. This dialog is _not_ modal, so user can view multiple files.

TextChangelistKeyDown ( object sender, KeyEventArgs e ) : void

Handle key down event so we can do the copy (Ctrl + C)

TextChangelistLinkClicked ( object sender, System.Windows.Forms.LinkClickedEventArgs e ) : void

User left-clicked on a file link within the rich text box

Method Details

DriveChangelistFromListViewEx() public static method

Describe (view) selected changelist and drive up/down back propagation through the host list view
public static DriveChangelistFromListViewEx ( ListViewEx &listRev ) : void
listRev ListViewEx
return void

FormShowChangelist() public method

Constructor, set the same font as for commit text box.
public FormShowChangelist ( ) : System
return System

LoadChangelist() public method

Given a Sha string, loads that commit into the form.
public LoadChangelist ( string sha ) : void
sha string
return void