wxr
2023-01-10 bff7d177c77523195575cca5ca550da4ae5270bd
HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage.cs
@@ -970,12 +970,16 @@
                if (device.trait_on_off.curValue.ToString() == "on")
                {
                    btnSwitch.IsSelected = true;
                    setTempBar.IsOffline = false;
                    //setTempBar.IsOffline = false;
                    setTempBar.Enable = true;
                    setTempBar.ProgressBarColor = CSS_Color.MainColor;
                }
                else
                {
                    btnSwitch.IsBold = false;
                    setTempBar.IsOffline = true;
                    //setTempBar.IsOffline = true;
                    setTempBar.Enable = false;
                    setTempBar.ProgressBarColor = CSS_Color.DividingLineColor;
                }
                System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
                d.Add(FunctionAttributeKey.OnOff, device.trait_on_off.curValue.ToString());
@@ -1031,7 +1035,9 @@
                    if (device.trait_on_off.curValue.ToString() == "on")
                    {
                        btnMode.IsSelected = btnSwing.IsSelected = btnWindSpeed.IsSelected = true;
                        setTempBar.IsOffline = false;
                        setTempBar.Enable = true;
                        setTempBar.ProgressBarColor = CSS_Color.MainColor;
                        btnSwitch.IsSelected = true;
                        if (device.GetAttrState(FunctionAttributeKey.Mode) == "fan")
                        {
@@ -1045,7 +1051,9 @@
                    else
                    {
                        btnMode.IsSelected = btnSwing.IsSelected = btnWindSpeed.IsSelected = false;
                        setTempBar.IsOffline = true;
                        setTempBar.Enable = false;
                        setTempBar.ProgressBarColor = CSS_Color.DividingLineColor;
                        btnSwitch.IsSelected = false;
                        setTempBar.IsClickable = false;
                    }