此代码运行后台工作程序之前的所有行,但不运行任何后台工作程序项:
private void Form1_Load(object sender, EventArgs e)
{
// Other code that runs
// debugger never executes these lines of code????
BackgroundWorker backgroundWorkerRefreshData = new BackgroundWorker();
backgroundWorkerRefreshData.DoWork += new DoWorkEventHandler(backgroundWorkerRefreshData_DoWork);
backgroundWorkerRefreshData.RunWorkerAsync();
}