Commit 8f80e7fa authored by 潘栩锋's avatar 潘栩锋 🚴

删除 假等待

parent 5b685a50
......@@ -136,7 +136,7 @@ namespace MultiLayout
{
//加载全部 ui module
UIModules.AddRange(uiContainer.ResolveAll<IUiModule2>());
await Task.Delay(10);
//await Task.Delay(10);
lp.Progress += 10;
......@@ -224,7 +224,7 @@ namespace MultiLayout
foreach (var tabitem in gageTabItem.Items)
tabitem.Graphs.RemoveAll(gc => !gageTabItem.Components.Any(c => c.ID == gc.ID));
await Task.Delay(10);
//await Task.Delay(10);
lp.Progress += 10;
//创建页面
......@@ -234,15 +234,15 @@ namespace MultiLayout
//初始化每个区
InitializeComponent_graph(gageTabItem, ucMainGage.tabControl_graph);
await Task.Delay(10);
//await Task.Delay(10);
lp.Progress += 10;
InitializeComponent_dynarea(gageTabItem, ucMainGage.stackpanel_dynarea);
await Task.Delay(10);
//await Task.Delay(10);
lp.Progress += 10;
InitializeComponent_menu(gageTabItem, ucMainGage.stackpanel_menu);
await Task.Delay(10);
//await Task.Delay(10);
lp.Progress += 10;
return ucMainGage;
......@@ -282,7 +282,7 @@ namespace MultiLayout
gageTabItem.DynAreaItems.RemoveAll(id => !gageTabItem.Components.Any(c => c.ID == id));
foreach (var tabitem in gageTabItem.Items)
tabitem.Graphs.RemoveAll(gc => !gageTabItem.Components.Any(c => c.ID == gc.ID));
await Task.Delay(10);
//await Task.Delay(10);
lp.Progress += 10;
//创建页面
......@@ -294,13 +294,13 @@ namespace MultiLayout
gageTabItem.TabControl = ucMainGage.tabControl_graph;
//初始化每个区
InitializeComponent_graph(gageTabItem, ucMainGage.tabControl_graph);
await Task.Delay(10);
//await Task.Delay(10);
lp.Progress += 10;
InitializeComponent_dynarea(gageTabItem, ucMainGage.stackpanel_dynarea);
await Task.Delay(10);
//await Task.Delay(10);
lp.Progress += 10;
InitializeComponent_menu(gageTabItem, ucMainGage.stackpanel_menu);
await Task.Delay(10);
//await Task.Delay(10);
lp.Progress += 10;
tabControl_gage.Items.Add(tabItem);
......@@ -322,7 +322,7 @@ namespace MultiLayout
{
onInit.OnInit();
lp.Progress += 1;
await Task.Delay(2);
//await Task.Delay(2);
}
}
}
......@@ -335,7 +335,7 @@ namespace MultiLayout
{
onInit.OnInit();
lp.Progress += 1;
await Task.Delay(2);
//await Task.Delay(2);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment