| | |
| | | //更新链接状态icon颜色 |
| | | |
| | | |
| | | int ddd = 0; |
| | | #if DEBUG |
| | | int ddd = 0; |
| | | btnResidenceName.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | |
| | |
| | | } |
| | | else //其他设备 |
| | | { |
| | | |
| | | var btnbg = new Button() |
| | | { |
| | | UnSelectedImagePath = "Collection/Functionbg.png", |
| | |
| | | functionView.AddChidren(btnbg); |
| | | LoadDeviceFunctionDiv(functionView, function); |
| | | |
| | | |
| | | |
| | | if (SPK.ArmSensorSpkList().Contains(function.spk)) |
| | | { |
| | | btnbg.UnSelectedImagePath = "Collection/FunctionOnbg.png"; |
| | |
| | | } |
| | | } |
| | | index++; |
| | | |
| | | } |
| | | |
| | | if (index == 0) |
| | |
| | | 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 |
| | | { |
| | |
| | | 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); |
| | | } |