From 3f6685c77beeb12baf840733fb890860f4c26e7c Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期四, 25 七月 2024 17:25:59 +0800 Subject: [PATCH] 2024年07月25日17:24:45 --- HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshRelayControlPage.cs | 27 +++++++++++++++++++++++++-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshRelayControlPage.cs b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshRelayControlPage.cs index 3f665d1..9810e45 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshRelayControlPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshRelayControlPage.cs @@ -89,6 +89,15 @@ FrameWhiteCentet1.AddChidren(btnSwitch); btnSwitch.MouseUpEventHandler = (sender, e) => { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + //} btnSwitch.IsSelected = !btnSwitch.IsSelected; device.trait_on_off.curValue = btnSwitch.IsSelected ? "on" : "off"; new System.Threading.Thread(() => @@ -183,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; } } @@ -264,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"; } @@ -280,6 +294,15 @@ /// <param name="comadValue">鍛戒护</param> private void SendOtherComand(IconViewControl btnIcon, string comadKey, string comadValue) { + //if (!device.online) + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + //} btnIcon.CanClick = false; HdlThreadLogic.Current.RunThread(() => -- Gitblit v1.8.0