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

删除 假等待

parent 5b685a50
...@@ -136,7 +136,7 @@ namespace MultiLayout ...@@ -136,7 +136,7 @@ namespace MultiLayout
{ {
//加载全部 ui module //加载全部 ui module
UIModules.AddRange(uiContainer.ResolveAll<IUiModule2>()); UIModules.AddRange(uiContainer.ResolveAll<IUiModule2>());
await Task.Delay(10); //await Task.Delay(10);
lp.Progress += 10; lp.Progress += 10;
...@@ -224,7 +224,7 @@ namespace MultiLayout ...@@ -224,7 +224,7 @@ namespace MultiLayout
foreach (var tabitem in gageTabItem.Items) foreach (var tabitem in gageTabItem.Items)
tabitem.Graphs.RemoveAll(gc => !gageTabItem.Components.Any(c => c.ID == gc.ID)); tabitem.Graphs.RemoveAll(gc => !gageTabItem.Components.Any(c => c.ID == gc.ID));
await Task.Delay(10); //await Task.Delay(10);
lp.Progress += 10; lp.Progress += 10;
//创建页面 //创建页面
...@@ -234,15 +234,15 @@ namespace MultiLayout ...@@ -234,15 +234,15 @@ namespace MultiLayout
//初始化每个区 //初始化每个区
InitializeComponent_graph(gageTabItem, ucMainGage.tabControl_graph); InitializeComponent_graph(gageTabItem, ucMainGage.tabControl_graph);
await Task.Delay(10); //await Task.Delay(10);
lp.Progress += 10; lp.Progress += 10;
InitializeComponent_dynarea(gageTabItem, ucMainGage.stackpanel_dynarea); InitializeComponent_dynarea(gageTabItem, ucMainGage.stackpanel_dynarea);
await Task.Delay(10); //await Task.Delay(10);
lp.Progress += 10; lp.Progress += 10;
InitializeComponent_menu(gageTabItem, ucMainGage.stackpanel_menu); InitializeComponent_menu(gageTabItem, ucMainGage.stackpanel_menu);
await Task.Delay(10); //await Task.Delay(10);
lp.Progress += 10; lp.Progress += 10;
return ucMainGage; return ucMainGage;
...@@ -282,7 +282,7 @@ namespace MultiLayout ...@@ -282,7 +282,7 @@ namespace MultiLayout
gageTabItem.DynAreaItems.RemoveAll(id => !gageTabItem.Components.Any(c => c.ID == id)); gageTabItem.DynAreaItems.RemoveAll(id => !gageTabItem.Components.Any(c => c.ID == id));
foreach (var tabitem in gageTabItem.Items) foreach (var tabitem in gageTabItem.Items)
tabitem.Graphs.RemoveAll(gc => !gageTabItem.Components.Any(c => c.ID == gc.ID)); tabitem.Graphs.RemoveAll(gc => !gageTabItem.Components.Any(c => c.ID == gc.ID));
await Task.Delay(10); //await Task.Delay(10);
lp.Progress += 10; lp.Progress += 10;
//创建页面 //创建页面
...@@ -294,13 +294,13 @@ namespace MultiLayout ...@@ -294,13 +294,13 @@ namespace MultiLayout
gageTabItem.TabControl = ucMainGage.tabControl_graph; gageTabItem.TabControl = ucMainGage.tabControl_graph;
//初始化每个区 //初始化每个区
InitializeComponent_graph(gageTabItem, ucMainGage.tabControl_graph); InitializeComponent_graph(gageTabItem, ucMainGage.tabControl_graph);
await Task.Delay(10); //await Task.Delay(10);
lp.Progress += 10; lp.Progress += 10;
InitializeComponent_dynarea(gageTabItem, ucMainGage.stackpanel_dynarea); InitializeComponent_dynarea(gageTabItem, ucMainGage.stackpanel_dynarea);
await Task.Delay(10); //await Task.Delay(10);
lp.Progress += 10; lp.Progress += 10;
InitializeComponent_menu(gageTabItem, ucMainGage.stackpanel_menu); InitializeComponent_menu(gageTabItem, ucMainGage.stackpanel_menu);
await Task.Delay(10); //await Task.Delay(10);
lp.Progress += 10; lp.Progress += 10;
tabControl_gage.Items.Add(tabItem); tabControl_gage.Items.Add(tabItem);
...@@ -322,7 +322,7 @@ namespace MultiLayout ...@@ -322,7 +322,7 @@ namespace MultiLayout
{ {
onInit.OnInit(); onInit.OnInit();
lp.Progress += 1; lp.Progress += 1;
await Task.Delay(2); //await Task.Delay(2);
} }
} }
} }
...@@ -335,7 +335,7 @@ namespace MultiLayout ...@@ -335,7 +335,7 @@ namespace MultiLayout
{ {
onInit.OnInit(); onInit.OnInit();
lp.Progress += 1; 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