| | |
| | | recordFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/HistoryList.png"; |
| | | recordFL.GetTextButton().TextID = StringId.lishijilu; |
| | | |
| | | //用户管理 |
| | | CustomFrameLayout userManagerView = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); |
| | | whiteFl.AddChidren(userManagerView); |
| | | userManagerView.Y = heightY; |
| | | userManagerView.X = recordFL.Right + Application.GetRealWidth(CustomFrameLayout.interval); |
| | | userManagerView.AddImageView(); |
| | | userManagerView.AddTextButtonView(); |
| | | userManagerView.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/DoorlockUserManager.png"; |
| | | userManagerView.GetTextButton().TextID = StringId.UserManagement; |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare) |
| | | { |
| | | //用户管理 |
| | | CustomFrameLayout userManagerView = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); |
| | | whiteFl.AddChidren(userManagerView); |
| | | userManagerView.Y = heightY; |
| | | userManagerView.X = recordFL.Right + Application.GetRealWidth(CustomFrameLayout.interval); |
| | | userManagerView.AddImageView(); |
| | | userManagerView.AddTextButtonView(); |
| | | userManagerView.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/DoorlockUserManager.png"; |
| | | userManagerView.GetTextButton().TextID = StringId.UserManagement; |
| | | |
| | | userManagerView.SetClickListener((fl, btnImage, btnText) => { |
| | | var page = new VideoDoorlockUserListPage(device); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | userManagerView.SetClickListener((fl, btnImage, btnText) => |
| | | { |
| | | var page = new VideoDoorlockUserListPage(device); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | |
| | | }); |
| | | |
| | | }); |
| | | } |
| | | #endregion |
| | | |
| | | |
| | |
| | | //MainPage.BasePageView.AddChidren(historyPage); |
| | | //historyPage.LoadPage(); |
| | | //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | CommonMethod.Current.SkipRecordActivity(this.device.deviceId); |
| | | var waitPage = new Loading(); |
| | | this.AddChidren(waitPage); |
| | | waitPage.Start(""); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | try |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | CommonMethod.Current.SkipRecordActivity(this.device.deviceId); |
| | | }); |
| | | }catch(Exception ex) |
| | | { |
| | | |
| | | } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => { |
| | | waitPage.Hide(); |
| | | }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | }); |
| | | |
| | | |