Task使用

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

原文地址:https://www.cnblogs.com/houzf/p/12060178.html