public void Initialize([CanBeNull] IAheadBehindDataProvider aheadBehindDataProvider, FilterBranchHelper filterBranchHelper) { _aheadBehindDataProvider = aheadBehindDataProvider; _filterBranchHelper = filterBranchHelper; // This lazily sets the command source, invoking OnUICommandsSourceSet, which is required for setting up // notifications for each Tree. _ = UICommandsSource; }
public void Setup() { _originalShowAheadBehindData = AppSettings.ShowAheadBehindData; AppSettings.ShowAheadBehindData = true; _aheadBehindDataProvider = Substitute.For <IAheadBehindDataProvider>(); _sut = new ToolStripPushButton(); _sut.Initialize(_aheadBehindDataProvider, true); }
public void Initialize([CanBeNull] IAheadBehindDataProvider aheadBehindDataProvider, FilterBranchHelper filterBranchHelper, ICheckRefs refsSource, IScriptHostControl scriptHost) { _aheadBehindDataProvider = aheadBehindDataProvider; _filterBranchHelper = filterBranchHelper; _refsSource = refsSource; _scriptHost = scriptHost; // This lazily sets the command source, invoking OnUICommandsSourceSet, which is required for setting up // notifications for each Tree. _ = UICommandsSource; }
public BranchTree(TreeNode treeNode, IGitUICommandsSource uiCommands, [CanBeNull] IAheadBehindDataProvider aheadBehindDataProvider) : base(treeNode, uiCommands) { _aheadBehindDataProvider = aheadBehindDataProvider; }
public void Initialize([CanBeNull] IAheadBehindDataProvider aheadBehindDataProvider) { _aheadBehindDataProvider = aheadBehindDataProvider; ResetToDefaultState(); }
public void Initialize(IAheadBehindDataProvider aheadBehindDataProvider, bool supportsAheadBehindData) { _aheadBehindDataProvider = aheadBehindDataProvider; _supportsAheadBehindData = supportsAheadBehindData; ResetToDefaultState(); }
public BranchTree(TreeNode treeNode, IGitUICommandsSource uiCommands, [CanBeNull] IAheadBehindDataProvider aheadBehindDataProvider) : base(treeNode, uiCommands) { _aheadBehindDataProvider = aheadBehindDataProvider; uiCommands.UICommandsChanged += delegate { TreeViewNode.TreeView.SelectedNode = null; }; }
public void Initialize([CanBeNull] IAheadBehindDataProvider aheadBehindDataProvider, FilterBranchHelper filterBranchHelper) { _aheadBehindDataProvider = aheadBehindDataProvider; _filterBranchHelper = filterBranchHelper; }