1 App.Current.Dispatcher.Invoke((Action)(() => 2 { 3 MessageBoxWindow mwb = new MessageBoxWindow(t.Result.msgData, "提示", 1); 4 mwb.ShowDialog(); 5 return; 6 }));