From efcffde735fa65ae34bae0bcc86313b74ed0e36c Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期一, 20 五月 2024 13:47:38 +0800
Subject: [PATCH] 优化离线数据

---
 HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
index 6aca64f..741453a 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Light/DimmerPage.cs
@@ -81,7 +81,7 @@
             controlView = new FrameLayout()
             {
                 Gravity = Gravity.CenterHorizontal,
-                Y = Application.GetRealHeight(88),
+                Y = Application.GetRealHeight(88 + 10),
                 Width = Application.GetRealWidth(327),
                 Height = Application.GetRealHeight(526),
                 BackgroundImagePath = "Public/Fragmentbg.png",
@@ -220,11 +220,6 @@
                     Enable = function.GetAttribute(FunctionAttributeKey.FadeTime) != null,
                 };
                 controlView.AddChidren(barFadeTime);
-                barFadeTime.OnStopTrackingTouchEvent = (sender, e) =>
-                {
-                    function.SetAttrState(FunctionAttributeKey.FadeTime, e.ToString());
-                    function.UpdataFuncitonInfo();
-                };
 
                 var btnGradualChangeMaxValuesText = new Button()
                 {
@@ -267,12 +262,12 @@
             new System.Threading.Thread(() => {
                 while (true)
                 {
-                    System.Threading.Thread.Sleep(500);
+                    System.Threading.Thread.Sleep(2000);
                     if (curDimmerStatus)
                     {
                         continue;
                     }
-                    if ( onDimmerBar)
+                    if (onDimmerBar)
                     {
                         onDimmerBar = false;
                         continue;
@@ -280,6 +275,7 @@
                     else
                     {
                         DriverLayer.Control.Ins.SendReadCommand(function);
+                        curDimmerStatus = true;
                     }
                 }
             })

--
Gitblit v1.8.0