日期:2014-05-17 浏览次数:20998 次
private void RiLSettings_Load(object sender, EventArgs e)
{
worker = new BackgroundWorker();
worker.DoWork += worker_DoWork;
worker.RunWorkerAsync();
}
void worker_DoWork(object sender, DoWorkEventArgs e)
{
object[] obj = new object[10];
for (int i = 0; i < 10; i++)
{
obj[i] = yearRL ;
}
this.Invoke(new Action(() =>
{
comboBox1.Items.AddRange(obj);
}));
}