private void OnHeadChanged(object sender, RevisionPointerChangedEventArgs e) { var head = (Head)sender; _mergeButton.Enabled = !head.IsDetached; if (!_stashButton.Enabled) { _stashButton.Enabled = true; } }
private void OnHeadChanged(object sender, RevisionPointerChangedEventArgs e) { if (InvokeRequired) { BeginInvoke(new Action <Repository>(RelocateFakeItemsAfterCheckout), _repository); } else { RelocateFakeItemsAfterCheckout(_repository); } }
private void OnHeadChanged(object sender, RevisionPointerChangedEventArgs e) { if (SynchronizeInvoke.InvokeRequired) { try { SynchronizeInvoke.BeginInvoke(new MethodInvoker(UpdateCurrentBranchLabel), null); } catch (ObjectDisposedException) { } } else { UpdateCurrentBranchLabel(); } }
private void OnHeadChanged(object sender, RevisionPointerChangedEventArgs e) { if(InvokeRequired) { BeginInvoke(new Action<Repository>(RelocateFakeItemsAfterCheckout), _repository); } else { RelocateFakeItemsAfterCheckout(_repository); } }
private void OnHeadChanged(object sender, RevisionPointerChangedEventArgs e) { if(SynchronizeInvoke.InvokeRequired) { try { SynchronizeInvoke.BeginInvoke(new MethodInvoker(UpdateCurrentBranchLabel), null); } catch(ObjectDisposedException) { } } else { UpdateCurrentBranchLabel(); } }
private void OnHeadChanged(object sender, RevisionPointerChangedEventArgs e) { var head = (Head)sender; _mergeButton.Enabled = !head.IsDetached; if(!_stashButton.Enabled) { _stashButton.Enabled = true; } }