| | |
| | | public void LoadPage(VerticalRefreshLayout refreshView) |
| | | { |
| | | |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.AddDevice)).LoadTopView(); |
| | | var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.AddDevice)); |
| | | topView.maginY = 10; |
| | | topView.LoadTopView(); |
| | | 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); |
| | |
| | | var bindResult = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePackNew>(msg); |
| | | if (bindResult != null) |
| | | { |
| | | string tipTitle = Language.StringByID(StringId.Tip); |
| | | if (bindResult.Code == "147021") { |
| | | string tipTitle = "提示"; |
| | | string tipMsg = "无法绑定该设备,请从河东渠道购买该类型产品"; |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | tipTitle = "Tip"; |
| | | tipMsg = "Unable to bind this device. Please purchase this type of product from HDL"; |
| | | } |
| | | string tipMsg = Language.StringByID(StringId.UnableToBindThisDeviceTip); |
| | | new PublicAssmebly().TipMsg(tipTitle, tipMsg); |
| | | } |
| | | else |
| | | { |
| | | string tipTitle = "提示"; |
| | | string tipMsg = $"{bindResult.message}({bindResult.Code})"; |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | tipTitle = "Tip"; |
| | | } |
| | | new PublicAssmebly().TipMsg(tipTitle, tipMsg); |
| | | } |
| | | } |
| | |
| | | var bindResult = Newtonsoft.Json.JsonConvert.DeserializeObject<ResponsePackNew>(msg); |
| | | if (bindResult != null) |
| | | { |
| | | string tipTitle = Language.StringByID(StringId.Tip); |
| | | if (bindResult.Code == "147021") |
| | | { |
| | | string tipTitle = "提示"; |
| | | string tipMsg = "无法绑定该设备,请从河东渠道购买该类型产品"; |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | tipTitle = "Tip"; |
| | | tipMsg = "Unable to bind this device. Please purchase this type of product from HDL"; |
| | | } |
| | | string tipMsg = Language.StringByID(StringId.UnableToBindThisDeviceTip); |
| | | new PublicAssmebly().TipMsg(tipTitle, tipMsg); |
| | | } |
| | | else |
| | | { |
| | | string tipTitle = "提示"; |
| | | string tipMsg = $"{bindResult.message}({bindResult.Code})"; |
| | | if (Language.CurrentLanguage != "Chinese") |
| | | { |
| | | tipTitle = "Tip"; |
| | | } |
| | | new PublicAssmebly().TipMsg(tipTitle, tipMsg); |
| | | } |
| | | } |
| | |
| | | this.RemoveFromParent(); |
| | | }; |
| | | break; |
| | | case SPK.VideoDoorLock: { |
| | | //跳转到android那边去 |
| | | HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.SkipAddDeviceActivity(SPK.VideoDoorLock); |
| | | case SPK.Peephole: |
| | | case SPK.VideoDoorLock: |
| | | case SPK.Ev_Ipcam: |
| | | { |
| | | //跳转到android,ios那边去 |
| | | HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.SkipAddDeviceActivity(device.spk); |
| | | } |
| | | break; |
| | | } |