JLChen
2021-02-05 0a8ec482a5ad10bf3cd7010c89630b42ecaca741
HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs
old mode 100755 new mode 100644
@@ -53,6 +53,7 @@
        /// </summary>
        public void LoadFunctionDiv()
        {
            //todo 增加设备,增加功能列表卡片
            if (function == null)
            {
                this.RemoveFromParent();
@@ -172,6 +173,9 @@
                            case SPK.ElectricTuyaWeepRobot:
                                btnIcon.UnSelectedImagePath = "FunctionIcon/Electrical/WeepRobotThinIcon.png";
                                break;
                            case SPK.ElectricTuyaWaterValve:
                                btnIcon.UnSelectedImagePath = "FunctionIcon/Electrical/WaterValve/WaterValveIcon.png";
                                break;
                        }
                        btnSwitch.IsSelected = function.trait_on_off.curValue.ToString() == "on";
                        break;