Task使用

Task task = new Task(() =>
{
flightMdls = (List<FlightAirLineModelExModel>)ScreenManager.ShowWaitForm2(this.ParentForm, GetAirlineData, "");
});
task.Start();
task.ContinueWith((t) =>
{
this.Invoke((EventHandler)delegate
{
BandTree(flightMdls);
});
});

posted @ 2019-12-18 15:44  吃葡萄不吐葡萄脾  阅读(984)  评论(0编辑  收藏  举报