From 7232642ff48a7fbde2018cde652f3e771fa58025 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期三, 27 一月 2021 14:32:55 +0800
Subject: [PATCH] 20200127-英文版处理

---
 HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs |   56 +++++++++++++++++++++++++++++++++-----------------------
 1 files changed, 33 insertions(+), 23 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs
index 49307d5..e798a2e 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/FoolHeating/FloorHeatingPage.cs
@@ -128,22 +128,29 @@
                 Height = Application.GetMinRealAverage(40),
                 SelectedImagePath = "Collection/CollectionIcon.png",
                 UnSelectedImagePath = "Collection/CollectionGrayIcon.png",
-                IsSelected = fh.collection
+                IsSelected = fh.collect
             };
-            controlView.AddChidren(btnCollection);
+            //controlView.AddChidren(btnCollection);
+            //2020-12-16 濡傛灉鏄垚鍛橀殣钘忔敹钘忓姛鑳�
+            if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare)
+            {
+                controlView.AddChidren(btnCollection);
+            }
 
             arcBar = new DiyArcSeekBar()
             {
                 Gravity = Gravity.CenterHorizontal,
                 OpenAngle = 160,
-                ThumbImagePath = fh.trait_on_off.value.ToString() == "on" ? "FunctionIcon/AC/DiyThumbIcon2On.png" : "FunctionIcon/AC/DiyThumbIcon.png",
+                ThumbImagePath = fh.trait_on_off.curValue.ToString() == "on" ? "FunctionIcon/FloorHeating/DiyThumbIconOn.png" : "FunctionIcon/AC/DiyThumbIcon.png",
                 ThumbImageHeight = Application.GetRealWidth(50),
-                ProgressBarColor = fh.trait_on_off.value.ToString() == "on" ? 0xFFFC9C04 : CSS_Color.PromptingColor2,
-                MinValue = 5,
-                MaxValue = 35,
-                IsClickable = fh.trait_on_off.value.ToString() == "on",
+                ProgressBarColor = CSS_Color.AuxiliaryColor1, // 0xFFFC9C04,
+                OfflineProgressBarColor = CSS_Color.PromptingColor2,
+                IsOffline = fh.trait_on_off.curValue.ToString() == "off",
+                MinValue = fh.trait_temp.min,
+                MaxValue = fh.trait_temp.max,
+                //IsClickable = fh.trait_on_off.curValue.ToString() == "on",
                 ArcColor = CSS_Color.BackgroundColor,
-                Progress = Convert.ToInt32(fh.curTemp),
+                Progress = Convert.ToInt32(fh.trait_temp.curValue),
 #if __IOS__
                 Y = Application.GetRealHeight(120+25),
                 Width = Application.GetRealWidth(260-40),
@@ -168,7 +175,7 @@
                 TextColor = CSS_Color.FirstLevelTitleColor,
                 TextSize = 56,
                 IsBold = true,
-                Text = fh.curTemp.ToString(),
+                Text = fh.trait_temp.curValue.ToString(),
                 TextAlignment = TextAlignment.Center,
             };
             controlView.AddChidren(btnTemp);
@@ -214,7 +221,7 @@
                 X = Application.GetRealWidth(275),
                 Y = Application.GetRealHeight(263),
                 Width = Application.GetRealWidth(32),
-                Height = Application.GetRealWidth(32),
+               Height = Application.GetRealWidth(32),
                 UnSelectedImagePath = "Public/PlusSignIcon.png",
             };
             controlView.AddChidren(btnPlus);
@@ -232,17 +239,22 @@
             btnSwitch = new Button()
             {
                 Gravity = Gravity.CenterHorizontal,
-                Y = Application.GetRealHeight(462),
-                Width = Application.GetRealWidth(40),
-                Height = Application.GetRealWidth(40),
+                Y = Application.GetRealHeight(466),
+                Width = Application.GetRealWidth(32),
+                Height = Application.GetRealWidth(32),
                 UnSelectedImagePath = "Public/PowerClose.png",
                 SelectedImagePath = "Public/PowerOpen.png",
-                IsSelected = fh.trait_on_off.value.ToString() == "on"
+                IsSelected = fh.trait_on_off.curValue.ToString() == "on"
             };
             controlView.AddChidren(btnSwitch);
 
             LoadEventList();
-            new TopViewDiv(bodyView, Language.StringByID(StringId.LocationManagement)).LoadTopView(fh, actionRefresh);
+            new TopViewDiv(bodyView, Language.StringByID(StringId.FloorHeating)).LoadTopView_FunctionTop(fh, actionRefresh);
+            new System.Threading.Thread(() =>
+            {
+                DriverLayer.Control.Ins.SendReadCommand(fh);
+            })
+            { IsBackground = true }.Start();
         }
         /// <summary>
         /// 鍔犺浇淇敼妯″紡鍖哄煙
@@ -265,8 +277,6 @@
                 Width = Application.GetRealWidth(160),
                 Height = Application.GetRealHeight(287),
                 BackgroundImagePath = "FunctionIcon/AC/DivBg1.png",
-                AnimateSpeed = 0.3f,
-                Animate = Animate.DownToUp,
             };
             dialogView.AddChidren(modeChangeView);
 
@@ -294,28 +304,28 @@
             };
             modeChangeView.AddChidren(btnLine);
 
-            foreach (var m in fh.trait_mode.value_key)
+            foreach (var m in fh.trait_mode.value)
             {
                 Button btnModeIcon = new Button()
                 {
                     X = btnTitle.X,
-                    Y = Application.GetRealHeight(44 * (fh.trait_mode.value_key.IndexOf(m) + 1) + 10 + 8),
+                    Y = Application.GetRealHeight(44 * (fh.trait_mode.value.IndexOf(m) + 1) + 10 + 8),
                     Width = Application.GetRealWidth(24),
                     Height = Application.GetRealWidth(24),
-                    IsSelected = fh.trait_mode.value.ToString() == m,
+                    IsSelected = fh.trait_mode.curValue.ToString() == m,
                 };
                 modeChangeView.AddChidren(btnModeIcon);
 
                 Button btnModeText = new Button()
                 {
                     X = Application.GetRealWidth(12) + btnModeIcon.Right,
-                    Y = Application.GetRealHeight(44 * (fh.trait_mode.value_key.IndexOf(m) + 1) + 8),
+                    Y = Application.GetRealHeight(44 * (fh.trait_mode.value.IndexOf(m) + 1) + 8),
                     Height = Application.GetRealHeight(44),
                     Width = Application.GetRealWidth(70),
                     TextAlignment = TextAlignment.CenterLeft,
                     TextColor = CSS_Color.FirstLevelTitleColor,
                     SelectedTextColor = CSS_Color.MainColor,
-                    IsSelected = fh.trait_mode.value.ToString() == m,
+                    IsSelected = fh.trait_mode.curValue.ToString() == m,
                 };
                 modeChangeView.AddChidren(btnModeText);
 
@@ -348,7 +358,7 @@
                         break;
                 }
 
-                if (fh.trait_mode.value_key.IndexOf(m) < fh.trait_mode.value_key.Count - 1)
+                if (fh.trait_mode.value.IndexOf(m) < fh.trait_mode.value.Count - 1)
                 {
                     modeChangeView.AddChidren(new Button()
                     {

--
Gitblit v1.8.0