From 068c68295cad1967f7aafb4e5e951260ef03d4ce Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 09 七月 2021 09:16:43 +0800
Subject: [PATCH] 状态属性更改,不要轻易合并

---
 HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
index 950bbd0..e144964 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
@@ -13,7 +13,7 @@
         {
             try
             {
-                Application.RunOnMainThread(() =>
+                Application.RunOnMainThread((Action)(() =>
                 {
                     if (bodyView == null)
                     {
@@ -37,7 +37,7 @@
                     //    bodyView.arcBar.IsOffline = true;
                     //}
 
-                    if (updateTemp.trait_on_off.curValue.ToString() == "on")
+                    if (updateTemp.trait_on_off.state.ToString() == "on")
                     {
                         bodyView.arcBar.IsOffline = false;
                         bodyView.btnSwitch.IsSelected = true;
@@ -60,7 +60,7 @@
                     }
 
 
-                });
+                }));
             }
             catch (Exception ex)
             {
@@ -101,7 +101,7 @@
         {
             btnMinus.MouseUpEventHandler = (sender, e) =>
             {
-                if(function.trait_on_off.curValue.ToString() == "off")
+                if(function.trait_on_off.state.ToString() == "off")
                 {
                     return;
                 }
@@ -121,7 +121,7 @@
             };
             btnPlus.MouseUpEventHandler = (sender, e) =>
             {
-                if (function.trait_on_off.curValue.ToString() == "off")
+                if (function.trait_on_off.state.ToString() == "off")
                 {
                     return;
                 }
@@ -159,7 +159,7 @@
         {
             btnMode.MouseUpEventHandler = (sender, e) =>
             {
-                if (function.trait_on_off.curValue.ToString() == "off")
+                if (function.trait_on_off.state.ToString() == "off")
                 {
                     return;
                 }
@@ -169,8 +169,8 @@
             btnSwitch.MouseUpEventHandler = (sender, e) =>
             {
                 btnSwitch.IsSelected = !btnSwitch.IsSelected;
-                function.trait_on_off.curValue = btnSwitch.IsSelected ? "on" : "off";
-                if (function.trait_on_off.curValue.ToString() == "on")
+                function.trait_on_off.state = btnSwitch.IsSelected ? "on" : "off";
+                if (function.trait_on_off.state.ToString() == "on")
                 {
                     //arcBar.ProgressBarColor = CSS_Color.MainColor;
                     arcBar.ThumbImagePath = "FunctionIcon/FloorHeating/DiyThumbIconOn.png";
@@ -185,7 +185,7 @@
                     arcBar.IsOffline = true;
                 }
                 System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
-                d.Add(FunctionAttributeKey.OnOff, function.trait_on_off.curValue.ToString());
+                d.Add(FunctionAttributeKey.OnOff, function.trait_on_off.state.ToString());
                 Control.Ins.SendWriteCommand(function, d);
                
             };

--
Gitblit v1.8.0