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/AcControlPage.cs | 27 ++++++++++++++++-----------
1 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs
index 1b55639..2dc3048 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs
@@ -446,7 +446,7 @@
d.Add(FunctionAttributeKey.Mode, m);
Control.Ins.SendWriteCommand(device, d);
dialog.Close();
- if (device.GetAttrState(FunctionAttributeKey.Mode) == "fan")
+ if (device.GetAttrState(FunctionAttributeKey.Mode) == "fan" || device.GetAttrState(FunctionAttributeKey.Mode) == "dry")
{
setTempBar.IsClickable = false;
@@ -1069,18 +1069,19 @@
if (device.trait_on_off.curValue.ToString() == "on")
{
btnMode.IsSelected = btnSwing.IsSelected = btnWindSpeed.IsSelected = true;
- setTempBar.Enable = true;
+ //setTempBar.Enable = true;
setTempBar.ProgressBarColor = CSS_Color.MainColor;
btnSwitch.IsSelected = true;
- if (device.GetAttrState(FunctionAttributeKey.Mode) == "fan")
- {
- setTempBar.IsClickable = false;
- }
- else
- {
- setTempBar.IsClickable = true;
- }
+ //if (device.GetAttrState(FunctionAttributeKey.Mode) == "fan")
+ //{
+ // setTempBar.IsClickable = false;
+ //}
+ //else
+ //{
+ // setTempBar.IsClickable = true;
+ //}
+
}
else
{
@@ -1092,11 +1093,15 @@
setTempBar.IsClickable = false;
}
- if (device.GetAttrState(FunctionAttributeKey.Mode) == "dry")
+ if (device.GetAttrState(FunctionAttributeKey.Mode) == "dry" || device.GetAttrState(FunctionAttributeKey.Mode) == "fan")
{
setTempBar.IsOffline = true;
setTempBar.IsClickable = false;
+ }else
+ {
+ setTempBar.IsOffline = false;
+ setTempBar.IsClickable = true;
}
}
--
Gitblit v1.8.0