C# 懒人常用异步方法

Winform

this.Invoke(new Action(() =>

                        {

 

                        }));

Wpf

            this.Dispatcher.Invoke(DispatcherPriority.Normal,

                new Action(() =>

                {

                    //调用主线程

                    ButtonOkClick(this.msg);

                }));

原文地址:https://www.cnblogs.com/acdyf/p/4952990.html