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

由于 PropertyChanged2.Fody 有bug

feedbackheat 修改 Bads 绑定
parent c07bac0f
......@@ -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;
......
......@@ -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");
}
};
......
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