wxr
2024-11-01 c0c734d7a84cf7105401878ffc4b64cbb67621d1
HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddDevciePage.cs
@@ -8,43 +8,17 @@
using HDL_ON.UI.CSS;
using Shared;
#if __IOS__
using Shared.IOS.HDLCNVRSDK;
#endif
namespace HDL_ON.UI
{
    public class AddDevciePage : FrameLayout
    {
#if __ANDROID__
    public class dddxx { }
#else
        //大华摄像头sdk代理(Shared.IOS.HDLCNVRSDK)
        hdlLCNVRSDKDelegate hdlLCNVRDelegate;
        public class hdlLCNVRSDKDelegate : HDLLCNVRSDKDelegate
        {
            Action act;
            public hdlLCNVRSDKDelegate(Action action)
            {
                act = action;
            }
            public override void AddDeviceFailWithErrorCode(string errorCode)
            {
            }
            public override void BackFromAddDeviceView()
            {
                act?.Invoke();
            }
        }
#endif
        FrameLayout bodyView;
        IntegratedBrand brand;
        VerticalRefreshLayout contentView;
        public Action addDeviceCallback = null;
        public AddDevciePage(IntegratedBrand integratedBrand)
        {
@@ -62,8 +36,8 @@
            contentView = new VerticalRefreshLayout()
            {
                Y = Application.GetRealHeight(64+10),
                Height = Application.GetRealHeight(667 - 64-10),
                Y = Application.GetRealHeight(64 + 10),
                Height = Application.GetRealHeight(667 - 64 - 10),
                VerticalScrollBarEnabled = false,
            };
            bodyView.AddChidren(contentView);
@@ -127,6 +101,10 @@
            bool isFrist = true;
            foreach (var device in deviceList)
            {
                //if(device.spk == "peephole" || device.spk == "security.door.ezviz")
                //{
                //    continue;
                //}
                FrameLayout row = new FrameLayout()
                {
                    Height = Application.GetRealHeight(50),
@@ -226,6 +204,12 @@
                                this.RemoveFromParent();
                            };
                            break;
                        case SPK.Ev_Ipcam:
                        case SPK.VideoDoorLock:
                        case SPK.PeepholeEz:
                        case SPK.Peephole:
                            UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.SkipAddDeviceActivity(device.spk,addDeviceCallback);
                            break;
                    }
                };
            }