From 301d3f15ba03ff942c029bd4c0b1ff544f7cfede Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 30 十二月 2020 11:19:48 +0800 Subject: [PATCH] 2020-12-30 1.解决RGB灯,色盘ColorPicker部分安卓手机,刷新图片时会变小问题 --- HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs | 37 ++++++++++++++++++++++++++----------- 1 files changed, 26 insertions(+), 11 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs index 41538e1..94ddcde 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/AC/ACPageBLL.cs @@ -24,26 +24,41 @@ return; } updataTime = DateTime.Now; - bodyView.arcBar.IsOffline = bodyView.aC.trait_on_off.curValue.ToString() != "on"; + //bodyView.arcBar.IsOffline = bodyView.aC.trait_on_off.curValue.ToString() != "on"; + //bodyView.btnSwitch.IsSelected = uAc.trait_on_off.curValue.ToString() == "on"; + //if (uAc.refreshTime.AddMilliseconds(500) < DateTime.Now) + //{ + // bodyView.arcBar.Progress = Convert.ToInt32(Convert.ToDouble(uAc.trait_temp.curValue)); + //} + //bodyView.arcBar.ThumbImagePath = uAc.trait_on_off.curValue.ToString() == "on" ? "FunctionIcon/AC/DiyThumbIconOn.png" : "FunctionIcon/AC/DiyThumbIcon.png"; + //bodyView.arcBar.IsClickable = uAc.trait_on_off.curValue.ToString() == "on"; bodyView.btnTemp.Text = uAc.trait_temp.curValue.ToString(); bodyView.btnIndoorTemp.Text = Language.StringByID(StringId.IndoorTemp) + Convert.ToInt32(Convert.ToDouble(uAc.trait_IndoorTemp.curValue)) + "掳C"; bodyView.btnMode.UnSelectedImagePath = uAc.curModeImage; bodyView.btnWindSpeed.UnSelectedImagePath = uAc.curFanImage; - bodyView.btnSwitch.IsSelected = uAc.trait_on_off.curValue.ToString() == "on"; - if (uAc.refreshTime.AddMilliseconds(500) < DateTime.Now) + bodyView.arcBar.Progress = Convert.ToInt32(Convert.ToDouble(uAc.trait_temp.curValue)); + if (uAc.trait_on_off.curValue.ToString() == "on") { - bodyView.arcBar.Progress = Convert.ToInt32(Convert.ToDouble(uAc.trait_temp.curValue)); - } - bodyView.arcBar.ThumbImagePath = uAc.trait_on_off.curValue.ToString() == "on" ? "FunctionIcon/AC/DiyThumbIconOn.png" : "FunctionIcon/AC/DiyThumbIcon.png"; - bodyView.arcBar.IsClickable = uAc.trait_on_off.curValue.ToString() == "on"; - if(uAc.trait_mode.curValue.ToString() == "fan") - { - bodyView.arcBar.IsClickable = false; + bodyView.arcBar.IsOffline = false; + bodyView.btnSwitch.IsSelected = true; + bodyView.arcBar.ThumbImagePath = "FunctionIcon/AC/DiyThumbIconOn.png"; + if (uAc.trait_mode.curValue.ToString() == "fan") + { + bodyView.arcBar.IsClickable = false; + } + else + { + bodyView.arcBar.IsClickable = true; + } } else { - bodyView.arcBar.IsClickable = true; + bodyView.arcBar.IsOffline = true; + bodyView.btnSwitch.IsSelected = false; + bodyView.arcBar.IsClickable = false; + bodyView.arcBar.ThumbImagePath = "FunctionIcon/AC/DiyThumbIcon.png"; } + }); } catch (Exception ex) -- Gitblit v1.8.0