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
58d8b5b4
Commit
58d8b5b4
authored
Dec 18, 2020
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修复 PgGetSampleVmUt 没有初始化 SampleFeatures 的bug
parent
08b3774a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
20 deletions
+16
-20
PgGetSample.xaml.cs
Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgGetSample.xaml.cs
+16
-20
No files found.
Project.FLY.Thick.Base/FLY.Thick.Base.UI/PgGetSample.xaml.cs
View file @
58d8b5b4
...
...
@@ -64,10 +64,6 @@ namespace FLY.Thick.Base.UI
/// </summary>
public
bool
Enable
{
get
;
set
;
}
/// <summary>
/// 参数:间隔
/// </summary>
public
int
Interval
{
get
;
set
;
}
/// <summary>
/// 参数:速度
...
...
@@ -141,33 +137,32 @@ namespace FLY.Thick.Base.UI
this
.
getSampleService
=
getSampleService
;
this
.
gageInfoService
=
gageInfoService
;
this
.
tempdatas
=
tempdatas
;
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
"Enable"
,
this
,
"Enable"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
"Interval"
,
this
,
"Interval"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
"Velocity"
,
this
,
"Velocity"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
"Range"
,
this
,
"Range"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
"Window"
,
this
,
"Window"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
"IsCheckByPercent"
,
this
,
"IsCheckByPercent"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
"ErrPercent"
,
this
,
"ErrPercent"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
"ErrValue"
,
this
,
"ErrValue"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
"Search"
,
this
,
"Search"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
nameof
(
this
.
getSampleService
.
Enable
),
this
,
nameof
(
Enable
));
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
nameof
(
this
.
getSampleService
.
Velocity
),
this
,
nameof
(
Velocity
));
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
nameof
(
this
.
getSampleService
.
Range
),
this
,
nameof
(
Range
));
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
nameof
(
this
.
getSampleService
.
Window
),
this
,
nameof
(
Window
));
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
nameof
(
this
.
getSampleService
.
IsCheckByPercent
),
this
,
nameof
(
IsCheckByPercent
));
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
nameof
(
this
.
getSampleService
.
ErrPercent
),
this
,
nameof
(
ErrPercent
));
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
nameof
(
this
.
getSampleService
.
ErrValue
),
this
,
nameof
(
ErrValue
));
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
,
nameof
(
this
.
getSampleService
.
Search
),
this
,
nameof
(
Search
));
Samples
=
new
SampleCell
[
this
.
getSampleService
.
Samples
.
Count
()];
Features
=
new
SampleFeature
[
this
.
getSampleService
.
Features
.
Count
()];
for
(
int
i
=
0
;
i
<
Samples
.
Count
();
i
++)
{
Samples
[
i
]
=
new
SampleCell
();
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Samples
[
i
],
"Enable"
,
Samples
[
i
],
"Enable"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Samples
[
i
],
"JustForCheck"
,
Samples
[
i
],
"JustForCheck"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Samples
[
i
],
"OrgAD"
,
Samples
[
i
],
"OrgAD"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Samples
[
i
],
"Position"
,
Samples
[
i
],
"Position"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Samples
[
i
],
nameof
(
SampleCell
.
Enable
),
Samples
[
i
],
nameof
(
SampleCell
.
Enable
)
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Samples
[
i
],
nameof
(
SampleCell
.
JustForCheck
),
Samples
[
i
],
nameof
(
SampleCell
.
JustForCheck
)
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Samples
[
i
],
nameof
(
SampleCell
.
OrgAD
),
Samples
[
i
],
nameof
(
SampleCell
.
OrgAD
)
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Samples
[
i
],
nameof
(
SampleCell
.
Position
),
Samples
[
i
],
nameof
(
SampleCell
.
Position
)
);
}
for
(
int
i
=
0
;
i
<
Features
.
Count
();
i
++)
{
Features
[
i
]
=
new
SampleFeature
();
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Features
[
i
],
"Enable"
,
Features
[
i
],
"Enable"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Features
[
i
],
"StartPos"
,
Features
[
i
],
"StartPos"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Features
[
i
],
"EndPos"
,
Features
[
i
],
"EndPos"
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Features
[
i
],
nameof
(
SampleFeature
.
Enable
),
Features
[
i
],
nameof
(
SampleFeature
.
Enable
)
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Features
[
i
],
nameof
(
SampleFeature
.
StartPos
),
Features
[
i
],
nameof
(
SampleFeature
.
StartPos
)
);
Misc
.
BindingOperations
.
SetBinding
(
this
.
getSampleService
.
Features
[
i
],
nameof
(
SampleFeature
.
EndPos
),
Features
[
i
],
nameof
(
SampleFeature
.
EndPos
)
);
}
}
...
...
@@ -295,6 +290,7 @@ namespace FLY.Thick.Base.UI
SampleCell
sampleCell
=
new
SampleCell
();
Samples
[
i
]
=
sampleCell
;
}
Features
=
new
SampleFeature
[
2
];
Features
[
0
]
=
new
SampleFeature
();
Features
[
1
]
=
new
SampleFeature
();
...
...
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