1 this.Invoke(new Action(() => 2 { 3 4 }));
this.Dispatcher.Invoke(DispatcherPriority.Normal, new Action(() => { //调用主线程UI的的代码 ButtonOkClick(this.msg); }));