Azavea.NijPredictivePolicing.AcsAlchemistGui.MainForm.backgroundWorker1_DoWork C# (CSharp) Method

backgroundWorker1_DoWork() private method

private backgroundWorker1_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object
e DoWorkEventArgs
return void
        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            ImportJob job = (ImportJob)e.Argument;
            job.OnProgressUpdated += new ImportJob.ProgressUpdateHandler(this.backgroundWorker1.ReportProgress);
            e.Result = job.ExecuteJob();

            //EXTRA CREDIT: add support for cancellation
        }