Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hemei
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
潘栩锋
hemei
Commits
f58ff22e
Commit
f58ff22e
authored
Dec 14, 2018
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
由于 PropertyChanged2.Fody 有bug
feedbackheat 修改 Bads 绑定
parent
c07bac0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
FeedbackHeatServiceClient.cs
.../FLY.FeedbackRenZiJia/Client/FeedbackHeatServiceClient.cs
+3
-1
FeedbackHeat.cs
...dbackRenZiJia/FLY.FeedbackRenZiJia/Server/FeedbackHeat.cs
+3
-8
No files found.
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia/Client/FeedbackHeatServiceClient.cs
View file @
f58ff22e
...
...
@@ -86,7 +86,7 @@ namespace FLY.FeedbackRenZiJia.Client
/// <summary>
/// 烧了的加热棒
/// </summary>
public
bool
[]
Bads
{
get
;
set
;
}
public
bool
[]
Bads
{
get
;
private
set
;
}
/// <summary>
/// 当前风机启动中
...
...
@@ -287,7 +287,9 @@ namespace FLY.FeedbackRenZiJia.Client
HasFan
=
p
.
hasFan
;
HasElectricity
=
p
.
hasEletric
;
CheckNo
=
p
.
checkno
;
Bads
=
p
.
bads
;
NotifyPropertyChanged
(
"Bads"
);
}
break
;
...
...
Project.FLY.FeedbackRenZiJia/FLY.FeedbackRenZiJia/Server/FeedbackHeat.cs
View file @
f58ff22e
...
...
@@ -84,17 +84,13 @@ namespace FLY.FeedbackRenZiJia.Server
#
endregion
#
region
异常检测
private
bool
[]
bads
;
/// <summary>
/// 烧了的加热棒
/// </summary>
public
bool
[]
Bads
{
get
{
return
bads
;
}
set
{
bads
=
value
;
NotifyPropertyChanged
(
"Bads"
);
}
get
{
return
mHeatCheck
.
Bads
;
}
}
/// <summary>
...
...
@@ -239,12 +235,11 @@ namespace FLY.FeedbackRenZiJia.Server
Misc
.
BindingOperations
.
SetBinding
(
mHeatCheck
,
"Enable"
,
this
,
"CheckEnable"
,
Misc
.
BindingOperations
.
BindingMode
.
TwoWay
);
Misc
.
BindingOperations
.
SetBinding
(
mHeatCheck
,
"CheckNo"
,
this
,
"CheckNo"
);
//Misc.BindingOperations.SetBinding(mHeatCheck, "Bads", this, "Bads");
Bads
=
mHeatCheck
.
Bads
;
mHeatCheck
.
PropertyChanged
+=
(
s
,
e
)
=>
{
if
(
e
.
PropertyName
==
"Bads"
)
{
Bads
=
mHeatCheck
.
Bads
;
NotifyPropertyChanged
(
"Bads"
);
}
};
...
...
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