摘要:
public void UIThread(MethodInvoker method){ if (this.InvokeRequired) { this.Invoke(method); } else { method.Invoke(); }}public void UpdateUI(){ this.UIThread(delegate { this.Label1.Text = "msg1"; this.Label2.Text = "msg2"; });}public void Update... 阅读全文