示例#1
0
 /// <summary>
 /// called when a thread completes processing
 /// </summary>
 protected void OnThreadCompleted(bool bHadException, Exception ex)
 {
     try
     {
         ThreadCompleted?.Invoke(this, bHadException, ex);
     }
     catch { }
 }
示例#2
0
 private static void OnThreadCompleted()
 {
     Dispatcher.CurrentDispatcher.Invoke(new Action(delegate
     {
         if (ThreadCompleted != null)
         {
             ThreadCompleted.Invoke(null, new EventArgs());
         }
     }));
 }
示例#3
0
 /// <summary>
 /// called when a thread completes processing
 /// </summary>
 protected void OnThreadCompleted(bool bHadException, Exception ex)
 {
     try
     {
         if (ThreadCompleted != null)
         {
             ThreadCompleted.Invoke(this, bHadException, ex);
         }
     }
     catch { }
 }
示例#4
0
 /// <summary>
 /// called when a thread completes processing
 /// </summary>
 private void OnThreadCompleted(bool bHadException, Exception ex)
 {
     try
     {
         if (ThreadCompleted != null)
         {
             ThreadCompleted.Invoke(this, bHadException, ex);
         }
     }
     catch (Exception)
     {
     }
 }