Top Method Summary
Options Name Purpose
ActivateTools () Updates the enabled state of the toolbar buttons
LOGICAL CanDeleteSelectedBranch () Returns if the branch selected in the grid may be deleted
LOGICAL DeleteBranch (character, logical, character) Deletes a Git branch using the IGitBranchesProvider service
DeleteSelectedBranch () Deletes the Git branch selected in the grid after confirmation by the user
Consultingwerk.Studio.Git.IGitBranchesProvider GetProvider () Returns the reference to the IGitBranchesProvider service
InitializeComponent ()
LoadBranches () Loads the Git branches of the current workspace into the grid
OnLoad (EventArgs) Raises the Load event
smartDataBrowser1_AfterRowActivate (Object, EventArgs) Event handler for the AfterRowActivate event of the smartDataBrowser1
smartDataBrowser1_InitializeRow (Object, InitializeRowEventArgs) Event handler for the InitializeRow event of the smartDataBrowser1
ultraToolbarsManager1_ToolClick (Object, ToolClickEventArgs) Event handler for the ToolClick event of the ultraToolbarsManager1

Top Constructor Summary
Options Name Purpose
GitBranchesControl () Constructor for the GitBranchesControl class

Top Property Summary
Options Name Purpose
LOGICAL AutoLoad


Method Detail
Top

ActivateTools ()

Purpose: Updates the enabled state of the toolbar buttons
Notes: The Delete Branch button is only enabled when a branch that may
be deleted is selected in the grid

Top

LOGICAL CanDeleteSelectedBranch ()

Purpose: Returns if the branch selected in the grid may be deleted
Notes: The current branch and the protected branches (see
IGitBranchesProvider:ProtectedBranches) ProtectedBranches) must not be deleted

Returns LOGICAL
Logical value indicating if the selected branch may be deleted
Top

LOGICAL DeleteBranch (character, logical, character)

Purpose: Deletes a Git branch using the IGitBranchesProvider service
Notes: Catches the Exception thrown by the service and returns its
message, so that the caller can present the reason to the user.
Issues are logged to the client log file

Parameters:
pcBranchName CHARACTER
The name of the Git branch to delete
plForce LOGICAL
Logical value indicating if the branch should be deleted even when it is not fully merged
pcMessage CHARACTER
OUTPUT The message describing why the branch could not be deleted
Returns LOGICAL
Logical value indicating if the branch has been deleted
Top

DeleteSelectedBranch ()

Purpose: Deletes the Git branch selected in the grid after confirmation
by the user
Notes: When git refuses to delete the branch - typically because it is
not fully merged - the user is offered to force the delete

Top

Consultingwerk.Studio.Git.IGitBranchesProvider GetProvider ()

Purpose: Returns the reference to the IGitBranchesProvider service
Notes: The service is a session singleton, no clean-up required

Returns Consultingwerk.Studio.Git.IGitBranchesProvider
The reference to the IGitBranchesProvider service
Top

InitializeComponent ()


Top

LoadBranches ()

Purpose: Loads the Git branches of the current workspace into the grid
Notes: Fails silently when the Git branch information cannot be
retrieved, issues are logged to the client log file

Top

OnLoad (EventArgs)

Purpose: Raises the Load event
Notes: Loads the Git branches when the AutoLoad property is true

Parameters:
e System.EventArgs
The System.EventArgs with the data for this event
Top

smartDataBrowser1_AfterRowActivate (Object, EventArgs)

Purpose: Event handler for the AfterRowActivate event of the smartDataBrowser1
Notes: Re-evaluates the enabled state of the toolbar buttons for the
newly selected branch

Parameters:
sender System.Object
The reference to the object that raised the event
e System.EventArgs
The System.EventArgs with the data for this event
Top

smartDataBrowser1_InitializeRow (Object, InitializeRowEventArgs)

Purpose: Event handler for the InitializeRow event of the smartDataBrowser1
Notes: Applies the color-coding: the current branch is displayed in
green, branches whose remote branch is gone in dark yellow

Parameters:
sender System.Object
The reference to the object that raised the event
e Infragistics.Win.UltraWinGrid.InitializeRowEventArgs
The InitializeRowEventArgs with the data for this event
Top

ultraToolbarsManager1_ToolClick (Object, ToolClickEventArgs)

Purpose: Event handler for the ToolClick event of the ultraToolbarsManager1
Notes: Refreshes the Git branch information when the Refresh button is
clicked and deletes the selected branch when the Delete Branch
button is clicked

Parameters:
sender System.Object
The reference to the object that raised the event
e Infragistics.Win.UltraWinToolbars.ToolClickEventArgs
The ToolClickEventArgs with the data for this event


Constructor Detail
Top

GitBranchesControl ()

Purpose: Constructor for the GitBranchesControl class
Notes:



Property Detail
Top

LOGICAL AutoLoad


Returns LOGICAL


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       10.10.2026 15:33:48