示例#1
0
        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();
        }
示例#2
0
 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;
 }
示例#5
0
 protected override void Dispose(bool disposing)
 {
     if(disposing)
     {
         if(_refBinding != null)
         {
             _refBinding.Dispose();
             _refBinding = null;
         }
     }
     base.Dispose(disposing);
 }
示例#6
0
        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();
        }