Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Thick-Common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
Thick-Common
Commits
8f80e7fa
Commit
8f80e7fa
authored
Nov 01, 2022
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除 假等待
parent
5b685a50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
FlyLayoutManager.cs
MultiLayout/FlyLayoutManager.cs
+11
-11
No files found.
MultiLayout/FlyLayoutManager.cs
View file @
8f80e7fa
...
@@ -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);
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment