/// <summary> /// called when a thread completes processing /// </summary> protected void OnThreadCompleted(bool bHadException, Exception ex) { try { ThreadCompleted?.Invoke(this, bHadException, ex); } catch { } }
private static void OnThreadCompleted() { Dispatcher.CurrentDispatcher.Invoke(new Action(delegate { if (ThreadCompleted != null) { ThreadCompleted.Invoke(null, new EventArgs()); } })); }
/// <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 { } }
/// <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) { } }