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