| | |
| | | public void LoadPage() |
| | | { |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.AddDefenseFunction)).LoadTopView(); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.AddDefenseFunction)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView(); |
| | | |
| | | #region 显示的功能类型切换区域 |
| | | var showdFunctionTypeRow = new FrameLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Y = Application.GetRealHeight(64+10), |
| | | Height = Application.GetRealHeight(53), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | |
| | | btnFloor.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | string nowSelectId = null; |
| | | var list = FunctionList.List.GetArmSensorList(); |
| | | var list = FunctionList.List.GetArmCenterList(); |
| | | |
| | | #if DEBUG |
| | | list.AddRange(FunctionList.List.GetLightList()); |
| | |
| | | }, nowSelectId); |
| | | }; |
| | | |
| | | showdFunctionTypeRow.AddChidren(new Button() { |
| | | Height = 1, |
| | | Y = Application.GetRealHeight(52), |
| | | BackgroundColor = CSS_Color.DividingLineColor |
| | | }); |
| | | |
| | | |
| | | #endregion |
| | | |
| | | functionListView = new VerticalScrolViewLayout() |
| | | { |
| | | Y = showdFunctionTypeRow.Bottom, |
| | | Height = Application.GetRealHeight(530-60), |
| | | Height = Application.GetRealHeight(530-60-10), |
| | | BackgroundColor = CSS_Color.BackgroundColor, |
| | | }; |
| | | bodyView.AddChidren(functionListView); |
| | | |
| | | |
| | | var listAllFun = FunctionList.List.GetArmSensorList(); |
| | | var listAllFun = FunctionList.List.GetArmCenterList(); |
| | | #if DEBUG |
| | | listAllFun.AddRange(FunctionList.List.GetLightList()); |
| | | #endif |
| | |
| | | if (functions == null) |
| | | { |
| | | //初始值 |
| | | functions = FunctionList.List.GetArmSensorList(); |
| | | functions = FunctionList.List.GetArmCenterList(); |
| | | } |
| | | |
| | | |
| | |
| | | inValue = "alarm"; |
| | | break; |
| | | case SPK.SensorPir: |
| | | case SPK.SensorPirHold: |
| | | inKey = "people_status"; |
| | | break; |
| | | case SPK.SensorSmoke: |
| | |
| | | inValue = "alarm"; |
| | | break; |
| | | case SPK.SensorDoorWindow: |
| | | case SPK.SensorDryContact: |
| | | case SPK.SensorDryContact2: |
| | | inKey = "contact_status"; |
| | | inValue = "open"; |
| | | break; |