| | |
| | | var sView = new VerticalScrolViewLayout() |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(343), |
| | | Width = Application.GetRealWidth(343 + 50), |
| | | //Height = Application.GetRealWidth(230), |
| | | Height = Application.GetRealWidth(180), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | |
| | | mmp.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | sView.MouseUpEventHandler = eHandler; |
| | | view3.MouseUpEventHandler = eHandler; |
| | | btnPermissionTitle.MouseUpEventHandler = eHandler; |
| | | btnPermissionRight.MouseUpEventHandler = eHandler; |
| | | |
| | | #endregion |
| | | |
| | | |
| | | #region 人脸管理 |
| | | if (Entity.DB_ResidenceData.Instance.SupportFacePass) |
| | | { |
| | | var view4 = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealWidth(49), |
| | | }; |
| | | sView.AddChidren(view4); |
| | | |
| | | var btnFaceManagementTitle = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Width = Application.GetRealWidth(330), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | TextSize = CSS_FontSize.TextFontSize, |
| | | TextID = StringId.PermissionToUse, |
| | | }; |
| | | view4.AddChidren(btnFaceManagementTitle); |
| | | |
| | | var btnFaceManagementRight = new Button() |
| | | { |
| | | X = Application.GetRealWidth(311), |
| | | Gravity = Gravity.CenterVertical, |
| | | Width = Application.GetMinRealAverage(16), |
| | | Height = Application.GetMinRealAverage(16), |
| | | UnSelectedImagePath = "Public/Right.png", |
| | | }; |
| | | view4.AddChidren(btnFaceManagementRight); |
| | | |
| | | //sView.AddChidren(new Button() |
| | | //{ |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Height = Application.GetRealWidth(1), |
| | | // Width = Application.GetRealWidth(311), |
| | | // BackgroundColor = CSS_Color.DividingLineColor, |
| | | //}); |
| | | |
| | | EventHandler<MouseEventArgs> eFaceHandler = (sender, e) => |
| | | { |
| | | action = () => |
| | | { |
| | | residenceMemberInfos.Remove(memberInfo); |
| | | LoadMemberRow(); |
| | | }; |
| | | var mmp = new MemberPermissionPage(memberInfo, action); |
| | | MainPage.BasePageView.AddChidren(mmp); |
| | | mmp.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | view4.MouseUpEventHandler = eHandler; |
| | | btnFaceManagementTitle.MouseUpEventHandler = eFaceHandler; |
| | | btnFaceManagementRight.MouseUpEventHandler = eFaceHandler; |
| | | } |
| | | #endregion |
| | | |
| | | //#region 创建场景 2020-12-23 隐藏创建场景按钮 |
| | | //var view4 = new FrameLayout() |
| | | //{ |