你的位置:首页 > ASP.net教程

[ASP.net教程]C# 懒人常用异步方法

Winform

this.Invoke(new Action(() =>

                        {

 

                        }));

 

Wpf

            this.Dispatcher.Invoke(DispatcherPriority.Normal,

                new Action(() =>

                {

                    //调用主线程

                    ButtonOkClick(this.msg);

                }));