2
wei
2021-03-09 d41f1d4a478c1afcc43f3a5abb0ba76e376bc7c1
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>
@@ -187,7 +193,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 +258,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:确定