public void LoadData(Repository repository, ReferenceType referenceTypes, bool groupItems, bool groupRemoteBranches, Predicate <IRevisionPointer> predicate) { if (_refBinding != null) { _refBinding.Dispose(); _refBinding = null; } if (repository == null) { return; } BeginUpdate(); _refBinding = new ReferenceTreeBinding(Items, repository, groupItems, groupRemoteBranches, predicate, referenceTypes); if (!groupRemoteBranches) { ShowTreeLines = false; } EndUpdate(); }
protected override void Dispose(bool disposing) { if (disposing) { if (_refBinding != null) { _refBinding.Dispose(); _refBinding = null; } } base.Dispose(disposing); }
protected override void DetachFromRepository() { _refsBinding.ReferenceItemActivated -= OnReferenceItemActivated; _refsBinding.Dispose(); _refsBinding = null; Collapse(); }
protected override void AttachToRepository() { _refsBinding = new ReferenceTreeBinding(Items, Repository, true, true, null, ReferenceType.LocalBranch | ReferenceType.RemoteBranch | ReferenceType.Tag); _refsBinding.ReferenceItemActivated += OnReferenceItemActivated; }
protected override void Dispose(bool disposing) { if(disposing) { if(_refBinding != null) { _refBinding.Dispose(); _refBinding = null; } } base.Dispose(disposing); }
public void LoadData(Repository repository, ReferenceType referenceTypes, bool groupItems, bool groupRemoteBranches, Predicate<IRevisionPointer> predicate) { if(_refBinding != null) { _refBinding.Dispose(); _refBinding = null; } if(repository == null) return; BeginUpdate(); _refBinding = new ReferenceTreeBinding(Items, repository, groupItems, groupRemoteBranches, predicate, referenceTypes); if(!groupRemoteBranches) ShowTreeLines = false; EndUpdate(); }