From d72ca686a3e262693f8a6e45e747e8e8da43335b Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期二, 06 七月 2021 09:39:03 +0800 Subject: [PATCH] 2021-07-06 1.更新 --- HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWaterValvePage.cs | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWaterValvePage.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWaterValvePage.cs index 89d188b..73e6c7a 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWaterValvePage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWaterValvePage.cs @@ -42,12 +42,18 @@ /// </summary> public override void InitFrameWhiteContent() { - base.SetTitleText(Language.StringByID(StringId.AirCleaner)); + base.SetTitleText(Language.StringByID(StringId.WaterValve)); //鍒濆鍖栫涓�涓储寮曢〉鐨勫唴瀹� this.InitFrameWhiteContent1(); //鍒锋柊鐣岄潰鐘舵�� this.RefreshFormStatu(); + //璇诲彇鐘舵�� + new System.Threading.Thread(() => + { + Control.Ins.ReadFunctionsInfo(new List<string>() { device.deviceId}); + }) + { IsBackground = true }.Start(); } /// <summary> @@ -104,6 +110,21 @@ btnTimeSet.ButtonClickEvent = (sender, e) => { SetControlTime(); }; + + + var btnTimeSetTip = new NormalViewControl(300, 30, true) + { + Y = btnTimeSet.Bottom , + Gravity = Gravity.CenterHorizontal, + TextAlignment = TextAlignment.Center, + TextSize = CSS_FontSize.TextFontSize, + //TextColor = 0x00000000, + SelectedTextColor = CSS_Color.TextualColor, + TextColor = CSS_Color.TextualColor, + TextID = StringId.TimeSwitch, + }; + FrameWhiteCentet1.AddChidren(btnTimeSetTip); + //寮�鍏冲浘鏍� this.btnSwitch = new IconViewControl(40); @@ -187,7 +208,7 @@ { btnControlTip.TextID = StringId.ControllerNotOn; } - this.btnSwitch.IsSelected = this.btnPictrue.IsSelected = onoffStatu.value.ToString() == "on"; + this.btnSwitch.IsSelected = this.btnPictrue.IsSelected = onoffStatu.state.ToString() == "on"; } if (timeStatu != null) { @@ -252,6 +273,7 @@ private void SetControlTime() { var timeControl = new BottomTimeSelectControl(); + timeControl.RowCount = 5; timeControl.InitControl(0,0); timeControl.FinishEvent = (type,hours,min) => { if (type == 1)//0:鍙栨秷锛�1:纭畾 -- Gitblit v1.8.0