예제 #1
0
        private void OnHeadChanged(object sender, RevisionPointerChangedEventArgs e)
        {
            var head = (Head)sender;

            _mergeButton.Enabled = !head.IsDetached;
            if (!_stashButton.Enabled)
            {
                _stashButton.Enabled = true;
            }
        }
예제 #2
0
 private void OnHeadChanged(object sender, RevisionPointerChangedEventArgs e)
 {
     if (InvokeRequired)
     {
         BeginInvoke(new Action <Repository>(RelocateFakeItemsAfterCheckout), _repository);
     }
     else
     {
         RelocateFakeItemsAfterCheckout(_repository);
     }
 }
예제 #3
0
파일: Statusbar.cs 프로젝트: oqewok/gitter
 private void OnHeadChanged(object sender, RevisionPointerChangedEventArgs e)
 {
     if (SynchronizeInvoke.InvokeRequired)
     {
         try
         {
             SynchronizeInvoke.BeginInvoke(new MethodInvoker(UpdateCurrentBranchLabel), null);
         }
         catch (ObjectDisposedException)
         {
         }
     }
     else
     {
         UpdateCurrentBranchLabel();
     }
 }
예제 #4
0
 private void OnHeadChanged(object sender, RevisionPointerChangedEventArgs e)
 {
     if(InvokeRequired)
     {
         BeginInvoke(new Action<Repository>(RelocateFakeItemsAfterCheckout), _repository);
     }
     else
     {
         RelocateFakeItemsAfterCheckout(_repository);
     }
 }
예제 #5
0
파일: Statusbar.cs 프로젝트: Kuzq/gitter
 private void OnHeadChanged(object sender, RevisionPointerChangedEventArgs e)
 {
     if(SynchronizeInvoke.InvokeRequired)
     {
         try
         {
             SynchronizeInvoke.BeginInvoke(new MethodInvoker(UpdateCurrentBranchLabel), null);
         }
         catch(ObjectDisposedException)
         {
         }
     }
     else
     {
         UpdateCurrentBranchLabel();
     }
 }
예제 #6
0
파일: GitToolbar.cs 프로젝트: Kuzq/gitter
 private void OnHeadChanged(object sender, RevisionPointerChangedEventArgs e)
 {
     var head = (Head)sender;
     _mergeButton.Enabled = !head.IsDetached;
     if(!_stashButton.Enabled)
     {
         _stashButton.Enabled = true;
     }
 }