private void BackgroundWorkerRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { _waitForm.Hide(); StaticWaitFormProvider.IsActive = false; if (RunWorkerCompleted != null) { RunWorkerCompleted(this, e); } }
/// <summary> /// ќстановит поток /// </summary> public void StopThread() { thread.Abort(); waitForm.Hide(); StaticWaitFormProvider.IsActive = false; }