From 4f2dbd1f6a1ec2d9c3c39b4a37b0b7c9ddece4aa Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 23 九月 2021 15:24:01 +0800 Subject: [PATCH] 主页刷新优化 --- HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs index 9ec2bdf..805a2ac 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs @@ -25,7 +25,7 @@ } AC temp = new AC(); updataTime = DateTime.Now; - bodyView.btnTemp.Text = updateTemp.GetAttrState(FunctionAttributeKey.SetTemp); + bodyView.btnTemp.Text = Convert.ToDouble( updateTemp.GetAttrState(FunctionAttributeKey.SetTemp)).ToString(); bodyView.btnIndoorTemp.Text = Language.StringByID(StringId.IndoorTemp) + Convert.ToInt32(Convert.ToDouble(updateTemp.GetAttrState((string)FunctionAttributeKey.RoomTemp))) + "掳C"; bodyView.btnMode.UnSelectedImagePath = temp.GetModeIconPath(updateTemp.GetAttrState(FunctionAttributeKey.Mode)); bodyView.btnWindSpeed.UnSelectedImagePath = temp.GetFanIconPath(updateTemp.GetAttrState(FunctionAttributeKey.FanSpeed)); @@ -96,7 +96,7 @@ { return; } - var temp = Convert.ToInt32(function.GetAttrState(FunctionAttributeKey.SetTemp)); + var temp = (int)Convert.ToDouble(function.GetAttrState(FunctionAttributeKey.SetTemp)); if (temp <= function.GetAttribute(FunctionAttributeKey.Mode).min) { return; @@ -116,7 +116,7 @@ { return; } - var temp = Convert.ToInt32(function.GetAttrState(FunctionAttributeKey.SetTemp)); + var temp = (int)Convert.ToDouble(function.GetAttrState(FunctionAttributeKey.SetTemp)); if (temp >= function.GetAttribute(FunctionAttributeKey.SetTemp).max) { return; -- Gitblit v1.8.0