コード例 #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
ファイル: ReferencesListBox.cs プロジェクト: Kuzq/gitter
 protected override void Dispose(bool disposing)
 {
     if(disposing)
     {
         if(_refBinding != null)
         {
             _refBinding.Dispose();
             _refBinding = null;
         }
     }
     base.Dispose(disposing);
 }
コード例 #6
0
ファイル: ReferencesListBox.cs プロジェクト: Kuzq/gitter
        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();
        }