| | |
| | | using HDL_ON.DAL.Server; |
| | | using HDL_ON.Entity; |
| | | using HDL_ON.UI.CSS; |
| | | using HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock; |
| | | #if __Android__ |
| | | using Java.Interop; |
| | | using Android.Content; |
| | |
| | | page.LoadPage(contentView); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.Devices)).LoadTopView_AddIcon("3ty", action); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.Devices)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView_AddIcon("3ty", action); |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | |
| | | contentView = new VerticalRefreshLayout() |
| | | { |
| | | Y = Application.GetRealHeight(64), |
| | | Height = Application.GetRealHeight(667 - 64), |
| | | Y = Application.GetRealHeight(64+10), |
| | | Height = Application.GetRealHeight(667 - 64-10), |
| | | VerticalScrollBarEnabled = false, |
| | | }; |
| | | bodyView.AddChidren(contentView); |
| | |
| | | bool isFrist = true; |
| | | foreach (var device in deviceList) |
| | | { |
| | | if (!this.CheckSupportDevice(device)) |
| | | { |
| | | continue; |
| | | } |
| | | //if (!this.CheckSupportDevice(device)) |
| | | //{ |
| | | // continue; |
| | | //} |
| | | var row = new RowLayout() |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | |
| | | contentView.BeginHeaderRefreshing(); |
| | | }; |
| | | break; |
| | | case SPK.VideoDoorLock: |
| | | { |
| | | CommonMethod.Current.MainThread(() => |
| | | { |
| | | //萤石视频门锁 |
| | | var form = new VideoDoorLockPage(device, btnName, new Button(), CommonMethod.Comerom.sanfan, () => |
| | | { |
| | | row.RemoveFromParent(); |
| | | }); |
| | | MainPage.BasePageView.AddChidren(form); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | form.Show(); |
| | | }); |
| | | } |
| | | break; |
| | | } |
| | | }; |
| | | |