异步处理
时间:2010-08-31 来源:sheme
代码
delegate void ProcessDelegate();
private void btnStart_Click(object sender, EventArgs e)
{
ProcessDelegate pdSteps = new ProcessDelegate(Process);
pdSteps.BeginInvoke(null, null);
}
private void Process()
{
//do something...
}
private void btnStart_Click(object sender, EventArgs e)
{
ProcessDelegate pdSteps = new ProcessDelegate(Process);
pdSteps.BeginInvoke(null, null);
}
private void Process()
{
//do something...
}
相关阅读 更多 +