| | |
| | | //更新链接状态icon颜色 |
| | | |
| | | |
| | | int ddd = 0; |
| | | #if DEBUG |
| | | int ddd = 0; |
| | | btnResidenceName.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | //827a98c98da7469b8bc19bb6a3c7651906 |
| | |
| | | } |
| | | 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) |
| | |
| | | }; |
| | | |
| | | |
| | | if (function.spk == SPK.SenesorMegahealth) |
| | | if (function.spk == SPK.SenesorMegahealth || function.spk == SPK.SensorMmvPose) |
| | | { |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/Icon/HomeIcon/sensormegahealth.png"; |
| | | btnIcon.SelectedImagePath = "FunctionIcon/Icon/HomeIcon/sensormegahealth.png"; |
| | |
| | | |
| | | } |
| | | |
| | | else if (function.spk == SPK.SenesorMegahealth) |
| | | else if (function.spk == SPK.SenesorMegahealth || function.spk == SPK.SensorMmvPose) |
| | | { |
| | | //btnIcon.UnSelectedImagePath = $"FunctionIcon/Icon/HomeIcon/{function.IconName}.png"; |
| | | //btnIcon.SelectedImagePath = "FunctionIcon/Icon/HomeIcon/sensormegahealth.png"; |
| | |
| | | btnName.SelectedTextColor = CSS_Color.MainBackgroundColor; |
| | | 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); |
| | | } |
| | |
| | | |
| | | var btnLogo = new Button() |
| | | { |
| | | Y = Application.GetRealWidth(85), |
| | | Y = Application.GetRealHeight(65), |
| | | UnSelectedImagePath = "FunctionIcon/Acst/LvJianLogo.png", |
| | | SelectedImagePath = "FunctionIcon/Acst/LvJianLogo.png", |
| | | Width = Application.GetRealWidth(80), |
| | | Height = Application.GetRealWidth(37), |
| | | Height = Application.GetRealHeight(37), |
| | | }; |
| | | view.AddChidren(btnLogo); |
| | | |