如题
原先这样的 用匿名委托 写两句话用分号隔开的
this.Dispatcher.Invoke(delegate
{
MessageBox.Show("ok");
this.pb1.Value = 0;
});
现在两句话如何隔离
this.Dispatcher.Invoke(()=>
MessageBox.Show("ok")
this.pb1.Value = 0
);
------解决思路----------------------
this.Dispatcher.Invoke(()=>{
MessageBox.Show("ok");
this.pb1.Value = 0;}
);
这是送分题么……