wxr
2023-02-01 585b34a73cf351b65ef6322163946cb019a19c34
空调温度设置问题修复
1个文件已修改
10 ■■■■ 已修改文件
HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs
@@ -132,7 +132,8 @@
                    if (setTempAttr.curValue.ToString().Contains("."))
                    {
                        btnTemp.Text = setTempAttr.curValue.ToString().Split(".")[0];
                    }else
                    }
                    else
                    {
                        btnTemp.Text = setTempAttr.curValue.ToString();
                    }
@@ -186,6 +187,7 @@
                    TextAlignment = TextAlignment.Center,
                    Text = setTempAttr.min.ToString(),
                    TextSize = 12,
                    TextColor = 0xFFC0C7D4,
                };
                setTempView.AddChidren(btnMinTemp);
@@ -306,7 +308,8 @@
                device.SetAttrState(FunctionAttributeKey.SetTemp, e.ToString());
                if (setTempAttr.step == "0.5")
                {
                    btnTemp.Text = (setTempAttr.min + ((double)e / 2)).ToString("0.0");
                    e = e / 2;
                    btnTemp.Text = (setTempAttr.min + ((double)e)).ToString("0.0");
                }
                else
                {
@@ -777,7 +780,8 @@
            int index = 0;
            List<FunctionAttributes> attrList = new List<FunctionAttributes>();
            attrList.AddRange(device.attributes);
            attrList.Add(new FunctionAttributes() {
            attrList.Add(new FunctionAttributes()
            {
                key = "+",
            });