| | |
| | | switch (function.spk) |
| | | { |
| | | case SPK.GroupControl: |
| | | var dialog = new GroupControlPage(FunctionList.List.groupControls.Find((obj) => obj.sid == function.sid)); |
| | | dialog.ShowDialog(); |
| | | //var dialog = new GroupControlPage(FunctionList.List.groupControls.Find((obj) => obj.sid == function.sid)); |
| | | //dialog.ShowDialog(); |
| | | var groupControlPage = new GroupControlPage_V2(FunctionList.List.groupControls.Find((obj) => obj.sid == function.sid)); |
| | | MainPage.BasePageView.AddChidren(groupControlPage); |
| | | groupControlPage.LoadPage(btnCollectionIcon, btnName, btnFromFloor); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | break; |
| | | case SPK.AirSwitch: |
| | | var airSwitchPage = new AirSwitchPage(function); |
| | |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | break; |
| | | case SPK.SensorPir: |
| | | case SPK.SensorPirHold: |
| | | var pirPage = new SensorPirPage(); |
| | | pirPage.ShowColltionButton = false; |
| | | pirPage.AddForm(function, btnCollectionIcon, btnName, btnFromFloor); |
| | |
| | | Shared.IOS.HDLCNVRSDK.HDLLCNVRSDK.SharedInstance().RefreshDeviceList(); |
| | | } |
| | | //跳转大华摄像头 |
| | | Shared.Application.currentVC.NavigationController.NavigationBar.BarTintColor = UIKit.UIColor.LightGray; |
| | | Shared.IOS.HDLCNVRSDK.HDLLCNVRSDK.SharedInstance().RefreshDeviceList(); |
| | | Shared.IOS.HDLCNVRSDK.HDLLCNVRSDK.SharedInstance().ToMonitorViewWithDeviceId(function.extDevId, function.name, Shared.Application.currentVC); |
| | | Shared.Application.currentVC.NavigationController.NavigationBar.Hidden = false; |
| | | //Shared.Application.currentVC.NavigationController.NavigationBar.Hidden = false; |
| | | #else |
| | | FunctionList.List.GetIpCamImouList(); |
| | | if (string.IsNullOrEmpty(Com.Utils.HdlToLcUtils.Instance.SubAccessToken)) |