// 异步刷新1(解决线程问题)
//Thread thread = new Thread(() =>
//{
// ServiceReference2.Service1Client serclick = new ServiceReference2.Service1Client();
// this.richTextBox1.Text += serclick.GetData() + "\n";
// MessageBox.Show(this.richTextBox1.Text);
//});
//thread.Start();
// 异步刷新2(解决线程问题)
//Task.Run(() =>
//{
// ServiceReference2.Service1Client serclick = new ServiceReference2.Service1Client();
// this.richTextBox1.Text += serclick.GetData() + "\n";
// MessageBox.Show(this.richTextBox1.Text);
//});
// 异步刷新3(解决线程问题)
//ServiceReference2.Service1Client serclick = new ServiceReference2.Service1Client();
//this.richTextBox1.Text +=await serclick.GetDataAsync() + "\n";
//MessageBox.Show(this.richTextBox1.Text);
//run();
// 异步刷新4(解决线程问题)
ServiceReference2.Service1Client serclick = new ServiceReference2.Service1Client();
serclick.GetDataAsync();
serclick.GetDataCompleted += Serclick_GetDataCompleted;
//如果出现问题:
可能出现在: