From cbc156bc38d8b8eae7aef60cb186ab2b52fa701f Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期二, 16 七月 2024 13:59:56 +0800 Subject: [PATCH] 增加全部挂断 --- HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshRelayControlPage.cs | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshRelayControlPage.cs b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshRelayControlPage.cs index 90fea50..9810e45 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshRelayControlPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshRelayControlPage.cs @@ -109,15 +109,15 @@ { IsBackground = true }.Start(); }; + //鍒锋柊鐣岄潰鐘舵�� + this.RefreshFormStatu(); + if (fanSpeedList.Count > 0) { this.btnFan.UnSelectedImagePath = "FunctionIcon/AirFresh/Fan1.png"; this.btnFan.SelectedImagePath = "FunctionIcon/AirFresh/Fan1Select.png"; this.btnFanView.Text = Language.StringByID(StringId.LowWindSpeed); } - //鍒锋柊鐣岄潰鐘舵�� - this.RefreshFormStatu(); - } #endregion @@ -192,10 +192,10 @@ else if(fanAttrValue == "auto") { text = Language.StringByID(StringId.Auto); - iconPath = "FunctionIcon/AirFresh/Fan2.png"; + iconPath = "FunctionIcon/AC/AutoIconGray.png"; if (this.device.GetAttrState(FunctionAttributeKey.FanSpeed) == "auto" ) { - iconPath = "FunctionIcon/AirFresh/Fan2Select.png"; + iconPath = "FunctionIcon/AC/AutoIcon.png"; isSelecte = true; } } @@ -273,6 +273,11 @@ this.btnFan.UnSelectedImagePath = "FunctionIcon/AirFresh/Fan3.png"; this.btnFan.SelectedImagePath = "FunctionIcon/AirFresh/Fan3Select.png"; this.btnFanView.Text = Language.StringByID(StringId.HighWindSpeed); + }else if (this.device.GetAttrState(FunctionAttributeKey.FanSpeed) == "auto") + { + this.btnFan.UnSelectedImagePath = "FunctionIcon/AC/AutoIconGray.png"; + this.btnFan.SelectedImagePath = "FunctionIcon/AC/AutoIcon.png"; + this.btnFanView.Text = Language.StringByID(StringId.Auto); } this.btnFan.CanClick = this.btnFan.IsSelected = this.device.GetAttrState(FunctionAttributeKey.OnOff) == "on"; } -- Gitblit v1.8.0