将属性分配给 BackgroundWorker
这允许在任务之间取消 BackgroundWorker
bgWorker.WorkerSupportsCancellation = true;
这允许工人报告任务完成之间的进度……
bgWorker.WorkerReportsProgress = true;
//this must also be used in conjunction with the ProgressChanged event
这允许在任务之间取消 BackgroundWorker
bgWorker.WorkerSupportsCancellation = true;
这允许工人报告任务完成之间的进度……
bgWorker.WorkerReportsProgress = true;
//this must also be used in conjunction with the ProgressChanged event