C# 懒人常用异步方法

Winform

this.Invoke(new Action(() =>

                        {

 

                        }));

 

Wpf

            this.Dispatcher.Invoke(DispatcherPriority.Normal,

                new Action(() =>

                {

                    //调用主线程

                    ButtonOkClick(this.msg);

                }));

posted @ 2015-11-10 14:34  acdyf  阅读(617)  评论(0编辑  收藏  举报