日期:2014-05-17 浏览次数:21039 次
public class test
{
BackgroundWorker _Init = new BackgroundWorker();
public void CarouselInit()
{
_Init.DoWork += new DoWorkEventHandler(_DoWork_Init);
_Init.RunWorkerAsync();
}
void _DoWork_Init(object sender, DoWorkEventArgs e)
{
}
}
public class test
{
BackgroundWorker _Init = new BackgroundWorker();
private bool bInited=false;
public void CarouselInit()
{
if(!bInited)
{
bInited=true;
_Init.DoWork += new DoWorkEventHandler(_DoWork_Init);
}
_Init.RunWorkerAsync();
}
void _DoWork_Init(object sender, DoWorkEventArgs e)
{
}
}