Пример #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);
 }
Пример #3
0
 protected override void DetachFromRepository()
 {
     _refsBinding.ReferenceItemActivated -= OnReferenceItemActivated;
     _refsBinding.Dispose();
     _refsBinding = null;
     Collapse();
 }
Пример #4
0
 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();
        }