From f9f9b0030fdd2691632569b7dcad9d0ddca5e4cf Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 23 十二月 2020 09:28:54 +0800
Subject: [PATCH] 2020-12-23 1.调整mqtt挤下线,跑ui线程。2.LoadEvent_CheckLinkStatus方法调整

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

diff --git a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
index eacbce9..95ab2fa 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPageBLL.cs
@@ -79,6 +79,11 @@
         {
             btnMinus.MouseUpEventHandler = (sender, e) =>
             {
+                if(fh.trait_on_off.curValue.ToString() == "off")
+                {
+                    return;
+                }
+
                 var temp = Convert.ToInt32(fh.trait_temp.curValue);
                 if (temp < Convert.ToInt32(fh.trait_temp.min))
                 {
@@ -94,6 +99,10 @@
             };
             btnPlus.MouseUpEventHandler = (sender, e) =>
             {
+                if (fh.trait_on_off.curValue.ToString() == "off")
+                {
+                    return;
+                }
                 var temp = Convert.ToInt32(fh.trait_temp.curValue);
                 if (temp > Convert.ToInt32(fh.trait_temp.max))
                 {
@@ -130,6 +139,10 @@
         {
             btnMode.MouseUpEventHandler = (sender, e) =>
             {
+                if (fh.trait_on_off.curValue.ToString() == "off")
+                {
+                    return;
+                }
                 LoadDiv_ChangeModeView();
             };
 

--
Gitblit v1.8.0