From 88a66f8374d63fbe9403258a9faa0fdcacf96571 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 30 九月 2022 11:11:28 +0800
Subject: [PATCH] 获取云端数据code review
---
HDL_ON/UI/UI2/FuntionControlView/Acst/AcstParentPage.cs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Acst/AcstParentPage.cs b/HDL_ON/UI/UI2/FuntionControlView/Acst/AcstParentPage.cs
index e071faa..4762bbb 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Acst/AcstParentPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Acst/AcstParentPage.cs
@@ -831,7 +831,7 @@
new System.Threading.Thread(() => {
Dictionary<string, string> d = new Dictionary<string, string>();
- d.Add("onoff", btnPowerControl.IsSelected ? "on" : "off");
+ d.Add(FunctionAttributeKey.OnOff, btnPowerControl.IsSelected ? "on" : "off");
Control.Ins.SendWriteCommand(function, d);
})
{ IsBackground = true }.Start();
@@ -1116,7 +1116,7 @@
X = btnSubTempIcon.Right,
Y = Application.GetRealHeight(45 + 11),
Height = Application.GetRealHeight(14),
- Width = Application.GetRealWidth(22),
+ Width = Application.GetRealWidth(35),
TextColor = 0xFF1b3035,
TextSize = 10,
Text = sub.GetAttrState(AcstSub_AttrEnum.room_temp.ToString()) + "掳C",
@@ -1139,7 +1139,7 @@
X = btnSubHumidityIcon.Right,
Y = Application.GetRealHeight(45 + 11),
Height = Application.GetRealHeight(14),
- Width = Application.GetRealWidth(22),
+ Width = Application.GetRealWidth(35),
TextColor = 0xFF1b3053,
TextSize = 10,
Text = sub.GetAttrState(AcstSub_AttrEnum.room_humidity.ToString()) + "%",
--
Gitblit v1.8.0