private void DisplayAheadBehindInformationForBranches() { if (_rootNodes.Count == 0 || _aheadBehindDataProvider == null || !AppSettings.ShowAheadBehindData) { return; } var aheadBehindData = _aheadBehindDataProvider.GetData(); if (aheadBehindData == null) { // no tracking information return; } treeMain.LabelEdit = true; TreeNodeCollection nodes = _rootNodes[0].TreeViewNode.Nodes; foreach (TreeNode n in nodes) { UpdateAheadBehindDataOnbranches(n, aheadBehindData); } treeMain.LabelEdit = false; }
public IDictionary <string, AheadBehindData>?GetData(Encoding encoding, string branchName) => _provider.GetData(encoding, branchName);