Commit f58ff22e authored by 潘栩锋's avatar 潘栩锋 🚴

由于 PropertyChanged2.Fody 有bug

feedbackheat 修改 Bads 绑定
parent c07bac0f
...@@ -86,7 +86,7 @@ namespace FLY.FeedbackRenZiJia.Client ...@@ -86,7 +86,7 @@ namespace FLY.FeedbackRenZiJia.Client
/// <summary> /// <summary>
/// 烧了的加热棒 /// 烧了的加热棒
/// </summary> /// </summary>
public bool[] Bads { get; set; } public bool[] Bads { get; private set; }
/// <summary> /// <summary>
/// 当前风机启动中 /// 当前风机启动中
...@@ -287,7 +287,9 @@ namespace FLY.FeedbackRenZiJia.Client ...@@ -287,7 +287,9 @@ namespace FLY.FeedbackRenZiJia.Client
HasFan = p.hasFan; HasFan = p.hasFan;
HasElectricity = p.hasEletric; HasElectricity = p.hasEletric;
CheckNo = p.checkno; CheckNo = p.checkno;
Bads = p.bads; Bads = p.bads;
NotifyPropertyChanged("Bads");
}break; }break;
......
...@@ -84,17 +84,13 @@ namespace FLY.FeedbackRenZiJia.Server ...@@ -84,17 +84,13 @@ namespace FLY.FeedbackRenZiJia.Server
#endregion #endregion
#region 异常检测 #region 异常检测
private bool[] bads;
/// <summary> /// <summary>
/// 烧了的加热棒 /// 烧了的加热棒
/// </summary> /// </summary>
public bool[] Bads public bool[] Bads
{ {
get { return bads; } get { return mHeatCheck.Bads; }
set {
bads = value;
NotifyPropertyChanged("Bads");
}
} }
/// <summary> /// <summary>
...@@ -239,12 +235,11 @@ namespace FLY.FeedbackRenZiJia.Server ...@@ -239,12 +235,11 @@ namespace FLY.FeedbackRenZiJia.Server
Misc.BindingOperations.SetBinding(mHeatCheck, "Enable", this, "CheckEnable", Misc.BindingOperations.BindingMode.TwoWay); Misc.BindingOperations.SetBinding(mHeatCheck, "Enable", this, "CheckEnable", Misc.BindingOperations.BindingMode.TwoWay);
Misc.BindingOperations.SetBinding(mHeatCheck, "CheckNo", this, "CheckNo"); Misc.BindingOperations.SetBinding(mHeatCheck, "CheckNo", this, "CheckNo");
//Misc.BindingOperations.SetBinding(mHeatCheck, "Bads", this, "Bads"); //Misc.BindingOperations.SetBinding(mHeatCheck, "Bads", this, "Bads");
Bads = mHeatCheck.Bads;
mHeatCheck.PropertyChanged += (s, e) => mHeatCheck.PropertyChanged += (s, e) =>
{ {
if (e.PropertyName == "Bads") if (e.PropertyName == "Bads")
{ {
Bads = mHeatCheck.Bads;
NotifyPropertyChanged("Bads"); NotifyPropertyChanged("Bads");
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment