Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Package
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.Package
Commits
c2825942
Commit
c2825942
authored
Jan 07, 2023
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
链接状态
parent
671a64af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
29 deletions
+23
-29
VIZ.Package.Domain/Plugin/IPluginView.cs
+8
-8
VIZ.Package.Module/Control/ViewModel/ControlViewModel.cs
+15
-21
No files found.
VIZ.Package.Domain/Plugin/IPluginView.cs
View file @
c2825942
...
...
@@ -14,26 +14,26 @@ namespace VIZ.Package.Domain
/// <summary>
/// 上版
/// </summary>
/// <param name="conn">连接</param>
void
TakIn
(
ConnModel
conn
);
/// <param name="conn
s
">连接</param>
void
TakIn
(
IList
<
ConnModel
>
conns
);
/// <summary>
/// 继续
/// </summary>
/// <param name="conn">连接</param>
void
TakeContinue
(
ConnModel
conn
);
/// <param name="conn
s
">连接</param>
void
TakeContinue
(
IList
<
ConnModel
>
conns
);
/// <summary>
/// 下版子
/// </summary>
/// <param name="conn">连接</param>
void
TakeOut
(
ConnModel
conn
);
/// <param name="conn
s
">连接</param>
void
TakeOut
(
IList
<
ConnModel
>
conns
);
/// <summary>
/// 更新
/// </summary>
/// <param name="conn">连接</param>
void
TakeUpdate
(
ConnModel
conn
);
/// <param name="conn
s
">连接</param>
void
TakeUpdate
(
IList
<
ConnModel
>
conns
);
/// <summary>
/// 预览上版子
...
...
VIZ.Package.Module/Control/ViewModel/ControlViewModel.cs
View file @
c2825942
...
...
@@ -77,9 +77,9 @@ namespace VIZ.Package.Module
{
this
.
vizCommandService
.
TakeIn
(
conn
,
ApplicationDomainEx
.
CurrentPage
.
ScenePath
,
ApplicationDomainEx
.
CurrentPage
.
Layer
);
},
pluginAction
:
(
view
,
conn
)
=>
pluginAction
:
(
view
,
conn
s
)
=>
{
view
.
TakIn
(
conn
);
view
.
TakIn
(
conn
s
);
});
}
...
...
@@ -102,9 +102,9 @@ namespace VIZ.Package.Module
{
this
.
vizCommandService
.
Continue
(
conn
,
ApplicationDomainEx
.
CurrentPage
.
ScenePath
,
ApplicationDomainEx
.
CurrentPage
.
Layer
);
},
pluginAction
:
(
view
,
conn
)
=>
pluginAction
:
(
view
,
conn
s
)
=>
{
view
.
TakeContinue
(
conn
);
view
.
TakeContinue
(
conn
s
);
});
}
...
...
@@ -127,9 +127,9 @@ namespace VIZ.Package.Module
{
this
.
vizCommandService
.
TakeOut
(
conn
,
ApplicationDomainEx
.
CurrentPage
.
Layer
);
},
pluginAction
:
(
view
,
conn
)
=>
pluginAction
:
(
view
,
conn
s
)
=>
{
view
.
TakeOut
(
conn
);
view
.
TakeOut
(
conn
s
);
});
}
...
...
@@ -152,9 +152,9 @@ namespace VIZ.Package.Module
{
this
.
vizCommandControlObjectService
.
SetControlObject
(
conn
,
obj
);
},
pluginAction
:
(
view
,
conn
)
=>
pluginAction
:
(
view
,
conn
s
)
=>
{
view
.
TakeUpdate
(
conn
);
view
.
TakeUpdate
(
conn
s
);
});
}
...
...
@@ -169,7 +169,7 @@ namespace VIZ.Package.Module
/// </summary>
/// <param name="controlObjectAction">控制对象行为</param>
/// <param name="pluginAction">插件行为</param>
private
void
Execute
(
Action
<
ControlObjectModel
,
ConnModel
>
controlObjectAction
,
Action
<
IPluginView
,
ConnModel
>
pluginAction
)
private
void
Execute
(
Action
<
ControlObjectModel
,
ConnModel
>
controlObjectAction
,
Action
<
IPluginView
,
IList
<
ConnModel
>
>
pluginAction
)
{
// 是否拥有打开的页或模板页
if
(
ApplicationDomainEx
.
CurrentPage
==
null
)
...
...
@@ -217,19 +217,13 @@ namespace VIZ.Package.Module
if
(
view
==
null
)
return
;
foreach
(
var
item
in
group
.
Items
)
try
{
if
(!
item
.
IsEnabled
||
!
item
.
IsConnected
)
continue
;
try
{
pluginAction
(
view
,
item
);
}
catch
(
Exception
ex
)
{
log
.
Error
(
ex
);
}
pluginAction
(
view
,
group
.
Items
.
Where
(
p
=>
p
.
IsEnabled
&&
p
.
IsConnected
).
ToList
());
}
catch
(
Exception
ex
)
{
log
.
Error
(
ex
);
}
}
}
...
...
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