摘要:
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { BackgroundWorker worker = sender as BackgroundWorker; int result = 0; for (int i = 0; i < 100000; i++) { result += i; } System.Threading.Thread.Sleep(3000); e.Result = result; } private void backgroundWorker1_ProgressChange 阅读全文