以前的代码:
public delegate void DoThreadedGoodManualType();
private void DoThreadedGoodManual()
{
if (this.InvokeRequired)
{
this.BeginInvoke(new DoThreadedGoodManualType(DoThreadedGoodManual));
return;
}
DoThreadedBad(); }
现在的代码:
[RunInUIThread]
protected virtual void DoThreadedGoodAOP()
{
DoThreadedBad();
}