Пример #1
0
 public new void Dispose()
 {
     this.Cancel();
     this.DoWork -= _DoWorkEventHandler;
     this._DoWorkEventHandler = null;
     this.Argument            = null;
     base.Dispose();
 }
Пример #2
0
 public new void Dispose()
 {
     this.Cancel();
     this.DoWork -= _DoWorkEventHandler;
     this._DoWorkEventHandler = null;
     this.Argument = null;
     base.Dispose();
 }
Пример #3
0
 public BackgroundWorker(System.ComponentModel.DoWorkEventHandler __DoWorkEventHandler, bool _WorkerSupportsCancellation = true, bool _AutoRun = false, object __Argument = null)
 {
     this.WorkerSupportsCancellation = _WorkerSupportsCancellation;
     this._DoWorkEventHandler = __DoWorkEventHandler;
     this.DoWork += _DoWorkEventHandler;
     this.Argument = __Argument;
     if (_AutoRun) this.Run();
 }
Пример #4
0
 public BackgroundWorker(System.ComponentModel.DoWorkEventHandler __DoWorkEventHandler, bool _WorkerSupportsCancellation = true, bool _AutoRun = false, object __Argument = null)
 {
     this.WorkerSupportsCancellation = _WorkerSupportsCancellation;
     this._DoWorkEventHandler        = __DoWorkEventHandler;
     this.DoWork  += _DoWorkEventHandler;
     this.Argument = __Argument;
     if (_AutoRun)
     {
         this.Run();
     }
 }
 public BackgroundThread(System.ComponentModel.DoWorkEventHandler workerFunction, System.ComponentModel.RunWorkerCompletedEventHandler workerCallback)
 {
     this.worker                     = new System.ComponentModel.BackgroundWorker();
     this.worker.DoWork             += workerFunction;
     this.worker.RunWorkerCompleted += workerCallback;
 }