Winform
this.Invoke(new Action(() =>
{
}));
Wpf
this.Dispatcher.Invoke(DispatcherPriority.Normal,
new Action(() =>
{
//调用主线程
ButtonOkClick(this.msg);
}));
时间: 2024-11-05 11:56:27
this.Invoke(new Action(() =>
{
}));
this.Dispatcher.Invoke(DispatcherPriority.Normal,
new Action(() =>
{
//调用主线程
ButtonOkClick(this.msg);
}));