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
79e1c181
Commit
79e1c181
authored
Dec 20, 2019
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决 修改主界面布局, 扫描图参数复位
parent
b357e430
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
COMMON.cs
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UIModule/COMMON.cs
+1
-1
ScanGraph.xaml.cs
...Y.Thick.Base/FLY.Thick.Base.UI/UIModule/ScanGraph.xaml.cs
+14
-2
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UIModule/COMMON.cs
View file @
79e1c181
...
...
@@ -46,7 +46,7 @@ namespace ThickTcpUiInWindow.UIModule
{
Misc
.
SaveToXmlHepler
.
Regist
(
typeof
(
T
));
}
public
void
MatchParam
(
int
[]
IDs
)
public
v
irtual
v
oid
MatchParam
(
int
[]
IDs
)
{
if
(
Items
.
RemoveAll
(
i
=>
{
return
!
IDs
.
Contains
(
i
.
ID
);
})
>
0
)
{
...
...
Project.FLY.Thick.Base/FLY.Thick.Base.UI/UIModule/ScanGraph.xaml.cs
View file @
79e1c181
...
...
@@ -168,7 +168,7 @@ namespace ThickTcpUiInWindow.UIModule
/// </summary>
public
class
ScanGraphItemParam
:
UIModuleParam
{
public
string
UiModule
{
get
;
set
;
}
=
"scangraph"
;
/// <summary>
/// 曲线类型
/// </summary>
...
...
@@ -215,6 +215,7 @@ namespace ThickTcpUiInWindow.UIModule
{
List
<
string
>
names
=
new
List
<
string
>(
base
.
GetSavePropertyNames
());
names
.
AddRange
(
new
string
[]{
"UiModule"
,
"Title"
,
"ChartType"
,
"BM"
,
...
...
@@ -232,6 +233,7 @@ namespace ThickTcpUiInWindow.UIModule
/// </summary>
public
class
ScanGraphParams
:
UIModuleParams
<
ScanGraphItemParam
>
{
/// <summary>
/// 主界面反向
/// </summary>
...
...
@@ -279,7 +281,17 @@ namespace ThickTcpUiInWindow.UIModule
}
}
public
void
MatchParam
(
string
uiModule
,
int
[]
IDs
)
{
if
(
Items
.
RemoveAll
(
i
=>
{
return
(
i
.
UiModule
==
uiModule
)
&&
(!
IDs
.
Contains
(
i
.
ID
));
})
>
0
)
{
Save
();
}
}
public
override
void
MatchParam
(
int
[]
IDs
)
{
MatchParam
(
"scangraph"
,
IDs
);
}
public
override
string
[]
GetSavePropertyNames
()
{
List
<
string
>
names
=
new
List
<
string
>(
base
.
GetSavePropertyNames
());
...
...
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