From 551e82d33c9c23442e0ecd320bcfc752f300d9ef Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 22 三月 2021 09:20:03 +0800
Subject: [PATCH] Merge branch 'temp-wxr' into WJC

---
 HDL_ON/UI/UI2/1-HomePage/HomePage.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
index 9366529..f2f00ae 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -739,7 +739,8 @@
                 }
 
                 LoadEvent_FunctionCollection(btnCollection, function);
-                if (function.spk == SPK.CurtainRoller || function.spk == SPK.CurtainShades ||
+                if (//SPK.CurtainSpkList().Contains(function.spk))
+                    function.spk == SPK.CurtainRoller || function.spk == SPK.CurtainShades ||
                     function.spk == SPK.CurtainSwitch || function.spk == SPK.CurtainTrietex )
                 {
                     btnIcon.UnSelectedImagePath = "FunctionIcon/Curtain/CurtainIcon.png";
@@ -771,14 +772,14 @@
                     LoadEvent_ControlCurtain(function, btnCurtainClose, btnCurtainOpen);
                 }
 
-                else if (function.spk == SPK.ElectricTV)
+                else if (function.spk == SPK.ElectricTV || function.spk == SPK.TvIr)
                 {
                     btnIcon.UnSelectedImagePath = "FunctionIcon/Electrical/TVIcon.png";
                     Button btnPower;
                     btnPower = new Button()
                     {
                         X = Application.GetRealWidth(131),
-                        Y = Application.GetRealHeight(86),
+                        Y = Application.GetRealHeight(70),
                         Width = Application.GetRealWidth(32),
                         Height = Application.GetRealWidth(32),
                         UnSelectedImagePath = "Public/PowerClose.png",

--
Gitblit v1.8.0