![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
private delegate void ShowStatusMessage(string vinfo);//代理 private void SetLabelMesssage(string vinfo) { //判断是否有其它线程调用控件 if (this.InvokeRequired) { ShowStatusMessage setpos = new ShowStatusMessage(SetLabelMesssage); this.Invoke(setpos, new object[] { vinfo }); } else { lblExpress.Text = vinfo; if (NowCount == ExpressCount) { lblExpress.Text = ""; DevExpress.XtraEditors.XtraMessageBox.Show(string.Format("预约结束! 成功数{0}笔,失败数{1}!", sCount, dCount), AppMessage.MSG0000); GetDataSale(); } } }