public new void Dispose() { this.Cancel(); this.DoWork -= _DoWorkEventHandler; this._DoWorkEventHandler = null; this.Argument = null; base.Dispose(); }
public new void Dispose() { this.Cancel(); this.DoWork -= _DoWorkEventHandler; this._DoWorkEventHandler = null; this.Argument = null; base.Dispose(); }
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 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; }