日期:2014-05-17 浏览次数:20922 次
BackgroundWorker bgw = (BackgroundWorker)sender;
if (!bgw.CancellationPending)
{
Thread.Sleep(100);
bgw.ReportProgress((int)((i / totalAmount) * 100), i);
}
backgroundWorker1.ReportProgress((int)((i / totalAmount) * 100), i);