private void OnCurrentBranchPositionChanged(object sender, RevisionChangedEventArgs e) { if (InvokeRequired) { BeginInvoke(new Action <Revision>(RelocateFakeItemsAfterHeadReset), e.NewValue); } else { RelocateFakeItemsAfterHeadReset(e.NewValue); } }
private void OnHeadPositionChanged(object sender, RevisionChangedEventArgs e) { var listBox = ListBox; if (listBox != null && listBox.InvokeRequired) { listBox.BeginInvoke(new MethodInvoker(Refresh), null); } else { Refresh(); } }
private void OnBranchPositionChanged(object sender, RevisionChangedEventArgs e) { LeaveRevision(e.OldValue); EnterRevision(e.NewValue); InvokePositionChanged(e.OldValue, e.NewValue); }
private void OnCurrentBranchPositionChanged(object sender, RevisionChangedEventArgs e) { if(InvokeRequired) { BeginInvoke(new Action<Revision>(RelocateFakeItemsAfterHeadReset), e.NewValue); } else { RelocateFakeItemsAfterHeadReset(e.NewValue); } }