C# Class TFSExp.ExtendedMerge.MergeWIControl

This class inherites from UserControl.
Mostrar archivo Open project: mirik123/tfsprod Class Usage Examples

Public Properties

Property Type Description
SuppressEvents bool

Private Properties

Property Type Description
DoMerge void
EditServerPath void
InitializeComponent void
button1_Click void
ctxMenuChangesets_ItemClicked void
listView1_ColumnClick void
listView1_MouseClick void
listView1_SelectedIndexChanged void
toolAutoCheckin_Click void
toolDChangeset_Click void
toolDClipboard_Click void
toolDServerPath_Click void
toolDWorkItem_Click void
toolEditServerPath_Click void
toolGetRelBranches_Click void
toolLinkWIs_Click void
toolMAlwaysAcceptMine_Click void
toolMConservative_Click void
toolMDiscard_Click void
toolMNormal_Click void
toolMerge_Click void
toolRefresh_Click void
toolResolve_Click void

Public Methods

Method Description
AddNewGridItem ( string wiID, string chID, string chDate, string chOwner, string sourcePath, string chchanges, string chcomment, ListViewItemTag tag ) : ListViewItem

Creates the new ListView item.

ClearGrids ( ) : void

Deletes all ListView items.

Initialize ( ) : void

Initializes this instance.

MergeWIControl ( ) : System

Initializes a new instance of the MergeWIControl class.

SetMergeTypes ( ) : void

Updates "Merge Types" column in Listview, see MergeFactory.SetMergeTypes.

SortItems ( ) : void

Sorts the ListView items using custom comparer MyListViewSorter.

UpdateRelatedBranchesCombo ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
DoMerge ( ) : void

Does the main merge action, see MergeFactory.DoMerge.

EditServerPath ( ListViewItemTag itm ) : void

Updates ListView column "Server Path".

InitializeComponent ( ) : void

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

button1_Click ( object sender, EventArgs e ) : void

Handles the Click event of the button1 control. Shows folder browser dialog on version control server, see MergeFactory.ShowServerFolderDlg.

ctxMenuChangesets_ItemClicked ( object sender, ToolStripItemClickedEventArgs e ) : void

Handles the ItemClicked event of the ctxMenuChangesets context menu. viewChangesetDetailesToolStripMenuItem - the same as toolDChangeset_Click viewWorkItemDetailesToolStripMenuItem - the same as toolDWorkItem_Click copyToClipboardToolStripMenuItem - the same as toolDClipboard_Click showServerPathToolStripMenuItem - the same as toolDServerPath_Click editSourcePathToolStripMenuItem - the same as toolEditServerPath_Click

listView1_ColumnClick ( object sender, ColumnClickEventArgs e ) : void

Handles the ColumnClick event of the listView1 control. Sorts ListView items with custom comparer MyListViewSorter

listView1_MouseClick ( object sender, MouseEventArgs e ) : void

Handles the MouseClick event of the listView1 control. Shows ListView context menu, see ctxMenuChangesets_ItemClicked.

listView1_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the listView1 control. Updates ClickedItem object to currently selected ListView item.

toolAutoCheckin_Click ( object sender, EventArgs e ) : void
toolDChangeset_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolDChangeset control. Shows Changeset details dialog, see MergeFactory.ShowChangesetDetailsDlg

toolDClipboard_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolDClipboard control. Copies selected ListView item data contained in Tag object to Clipboard.

toolDServerPath_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolDServerPath control. Navigates to the selected server path in Source Control Explorer, see MergeFactory.SelectVersionControlServerPath

toolDWorkItem_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolDWorkItem control. Shows WorkItem details dialog, see MergeFactory.ShowWorkItemDetailsDlg

toolEditServerPath_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolEditServerPath control. Updates ListView column "Server Path" for selected items, see EditServerPath

toolGetRelBranches_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolGetRelBranches control. Shows MessageBox with branches that have child/parent relationship for source and target paths.

toolLinkWIs_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolLinkWIs control. Sets the MergeFactory.LinkWorkItems.

toolMAlwaysAcceptMine_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolMAlwaysAcceptMine control. Sets MergeFactory.mergeOptions to MergeOptionsEx.AlwaysAcceptMine.

toolMConservative_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolMConservative control. Sets MergeFactory.mergeOptions to MergeOptionsEx.Conservative.

toolMDiscard_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolMDiscard control. Sets MergeFactory.mergeOptions to MergeOptionsEx.NoMerge.

toolMNormal_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolMNormal control. Sets MergeFactory.mergeOptions to MergeOptionsEx.None.

toolMerge_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolMerge control. Does the main merge operation, see DoMerge

toolRefresh_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolRefresh control, see SetMergeTypes.

toolResolve_Click ( object sender, EventArgs e ) : void

Handles the Click event of the toolResolve control. Shows ResolveConflicts dialog, see MergeFactory.ShowResolveConflictsDlg

Method Details

AddNewGridItem() public method

Creates the new ListView item.
public AddNewGridItem ( string wiID, string chID, string chDate, string chOwner, string sourcePath, string chchanges, string chcomment, ListViewItemTag tag ) : ListViewItem
wiID string The Work Item ID.
chID string The Chengeset ID.
chDate string The Changeset check-in date.
chOwner string The Changeset creator.
sourcePath string The Changeset root server path.
chchanges string The Changes types comma separated list.
chcomment string The Changeset comment.
tag ListViewItemTag The ListView item Tag object, see .
return ListViewItem

ClearGrids() public method

Deletes all ListView items.
public ClearGrids ( ) : void
return void

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

Initialize() public method

Initializes this instance.
public Initialize ( ) : void
return void

MergeWIControl() public method

Initializes a new instance of the MergeWIControl class.
public MergeWIControl ( ) : System
return System

SetMergeTypes() public method

Updates "Merge Types" column in Listview, see MergeFactory.SetMergeTypes.
public SetMergeTypes ( ) : void
return void

SortItems() public method

Sorts the ListView items using custom comparer MyListViewSorter.
public SortItems ( ) : void
return void

UpdateRelatedBranchesCombo() public method

public UpdateRelatedBranchesCombo ( ) : void
return void

Property Details

SuppressEvents public_oe property

Suppresses the ListView events when its items are changed by the inner code functions.
public bool SuppressEvents
return bool