Beispiel #1
0
 private void OnBranchRenamed(object sender, BranchRenamedEventArgs e)
 {
     if (e.Object.IsCurrent)
     {
         if (SynchronizeInvoke.InvokeRequired)
         {
             try
             {
                 SynchronizeInvoke.BeginInvoke(new MethodInvoker(UpdateCurrentBranchLabel), null);
             }
             catch (ObjectDisposedException)
             {
             }
         }
         else
         {
             UpdateCurrentBranchLabel();
         }
     }
 }
Beispiel #2
0
 private void OnBranchRenamed(object sender, BranchRenamedEventArgs e)
 {
     if(e.Object.IsCurrent)
     {
         if(SynchronizeInvoke.InvokeRequired)
         {
             try
             {
                 SynchronizeInvoke.BeginInvoke(new MethodInvoker(UpdateCurrentBranchLabel), null);
             }
             catch(ObjectDisposedException)
             {
             }
         }
         else
         {
             UpdateCurrentBranchLabel();
         }
     }
 }