wxr
2022-11-21 af224fed5dea064e306a0591dcd080655e38ec18
HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -189,8 +189,8 @@
                //更新链接状态icon颜色
                int ddd = 0;
#if DEBUG
                int ddd = 0;
                btnResidenceName.MouseUpEventHandler = (sender, e) =>
                {
@@ -699,7 +699,6 @@
                    }
                    else //其他设备
                    {
                        var btnbg = new Button()
                        {
                            UnSelectedImagePath = "Collection/Functionbg.png",
@@ -709,8 +708,6 @@
                        functionView.AddChidren(btnbg);
                        LoadDeviceFunctionDiv(functionView, function);
                        if (SPK.ArmSensorSpkList().Contains(function.spk))
                        {
                            btnbg.UnSelectedImagePath = "Collection/FunctionOnbg.png";
@@ -718,7 +715,6 @@
                        }
                    }
                    index++;
                }
                if (index == 0)
@@ -1133,6 +1129,11 @@
                    btnIcon.UnSelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_white.png";
                    btnIcon.SelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_white.png";
                }
                else if (function.spk == SPK.IpCam_Imou)
                {
                    btnIcon.UnSelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_blue.png";
                    btnIcon.SelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}_blue.png";
                }
                else
                {
@@ -1175,7 +1176,7 @@
                btnIcon.MouseUpEventHandler = skipControlPageEvent;
                btnState.MouseUpEventHandler = skipControlPageEvent;
                //不需要更新状态的动能列表
                if(!SPK.NotStatusSpkList.Contains(function.spk))
                if(!SPK.NotStatusSpkList.Contains(function.spk) || function.spk != SPK.IpCam_Imou)
                {
                    UpdataFunctionStates(function);
                }