xm
2021-12-01 6d73bf6e816570291865674bef8bce8972e4de3f
HDL_ON/UI/UI2/FuntionControlView/Electrical/TuyaWaterValvePage.cs
@@ -48,6 +48,12 @@
            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,8 +273,8 @@
        private void SetControlTime()
        {
            var timeControl = new BottomTimeSelectControl();
            timeControl.RowCount = 3;
            timeControl.InitControl(0,0,162);
            timeControl.RowCount = 5;
            timeControl.InitControl(0,0);
            timeControl.FinishEvent = (type,hours,min) => {
                if (type == 1)//0:取消;1:确定
                {