public void ThreadHalt()
 {
     foreach (var d in Complete.GetInvocationList())
     {
         Complete -= (CompleteHandler)d;
     }
     //thread.Join();
     //TODO: find a way to stop thread safty.
 }
Example #2
0
 private void OnComplete(ThreadCompleteEventArgs args)
 {
     if (Complete == null)
     {
         return;
     }
     try
     {
         SendEvent(Complete.GetInvocationList(), new object[] { this, args });
     }
     catch
     {
     }
 }