public void WaitForComplete() { while (!NoTasks) { _completeEvent.WaitOne(); _completeEvent.Reset(); } } }