/// <summary> /// send capability report create /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void capsReport(object sender, DoWorkEventArgs e) { // This event handler is where the actual work is done. // This method runs on the background thread. // Get the BackgroundWorker object that raised this event. BackgroundWorker work = (BackgroundWorker)sender; CapabilityReport rep = new CapabilityReport(); rep.CreateReport(saveReportFile.FileName, caps, work); }