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
65f73b68
Commit
65f73b68
authored
Jul 27, 2021
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 边界查找界面 单一材料功能 没有实现
parent
e4c86d07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
PgBorderSearch.xaml.cs
...t.FLY.Thick.Base/FLY.Thick.Base.UI/PgBorderSearch.xaml.cs
+11
-4
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgBorderSearch.xaml.cs
View file @
65f73b68
...
...
@@ -188,6 +188,10 @@ namespace FLY.Thick.Base.UI
/// </summary>
public
bool
Enable
{
get
;
set
;
}
/// <summary>
/// 单一材料
/// </summary>
public
bool
IsOneMaterial
{
get
;
set
;
}
/// <summary>
/// 边界拐点检测,找到的边界更加精确
/// </summary>
...
...
@@ -271,6 +275,8 @@ namespace FLY.Thick.Base.UI
chart1
=
chart
;
Misc
.
BindingOperations
.
SetBinding
(
BorderSearchService
,
nameof
(
BorderSearchService
.
Enable
),
this
,
nameof
(
Enable
));
Misc
.
BindingOperations
.
SetBinding
(
BorderSearchService
,
nameof
(
BorderSearchService
.
IsOneMaterial
),
this
,
nameof
(
IsOneMaterial
));
Misc
.
BindingOperations
.
SetBinding
(
BorderSearchService
,
nameof
(
BorderSearchService
.
IsBreakDetect
),
this
,
nameof
(
IsBreakDetect
));
Misc
.
BindingOperations
.
SetBinding
(
BorderSearchService
,
nameof
(
BorderSearchService
.
Valid
),
()=>
{
Valid
=
new
Range
(
BorderSearchService
.
Valid
);
...
...
@@ -297,7 +303,7 @@ namespace FLY.Thick.Base.UI
}
private
void
MInitParamService_PropertyChanged
(
object
sender
,
System
.
ComponentModel
.
PropertyChangedEventArgs
e
)
{
if
(
e
.
PropertyName
==
"PosLength"
)
if
(
e
.
PropertyName
==
nameof
(
InitParamService
.
PosLength
)
)
{
UpdateX
();
}
...
...
@@ -306,12 +312,12 @@ namespace FLY.Thick.Base.UI
private
void
MBorderSearchService_PropertyChanged
(
object
sender
,
System
.
ComponentModel
.
PropertyChangedEventArgs
e
)
{
if
(
e
.
PropertyName
==
"UpdateTime"
)
if
(
e
.
PropertyName
==
nameof
(
BorderSearch
.
UpdateTime
)
)
{
getView
();
}
else
if
((
e
.
PropertyName
==
"TempAD"
)
||
(
e
.
PropertyName
==
"TempRange"
))
else
if
((
e
.
PropertyName
==
nameof
(
BorderSearch
.
TempAD
)
)
||
(
e
.
PropertyName
==
nameof
(
BorderSearch
.
TempRange
)
))
{
chart1
.
Invalidate
();
}
...
...
@@ -350,6 +356,7 @@ namespace FLY.Thick.Base.UI
return
;
BorderSearchService
.
Enable
=
Enable
;
BorderSearchService
.
IsOneMaterial
=
IsOneMaterial
;
BorderSearchService
.
IsBreakDetect
=
IsBreakDetect
;
BorderSearchService
.
Valid
=
Valid
.
ToStruct
();
BorderSearchService
.
TempADBySet
=
TempADBySet
;
...
...
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