wjc
2023-03-29 3d5d2cb6bc250b15bec6c1fa233b69a1ff1ea050
HDL_ON/UI/UI2/FuntionControlView/VideoDoorLock/CommonMethod.cs
@@ -292,6 +292,37 @@
#endif
            return list;
        }
        /// <summary>
        /// 更新开锁图标和电池状态
        /// </summary>
        public void UpdateDoorLockState(PushMessageType pushMessageType, string homeId, string spk, string stateContent)
        {
            if (spk != SPK.VideoDoorLock)
            {
                return;
            }
            this.MainThread(() =>
            {
                int childrenCount = MainPage.BasePageView.ChildrenCount - 1;
                for (int i = childrenCount; childrenCount > i; i--)
                {
                    View view = MainPage.BasePageView.GetChildren(i);
                    if (view is VideoDoorLockPage)
                    {
                        VideoDoorLockPage videoDoorLockPage = (VideoDoorLockPage)view;
                        if (videoDoorLockPage != null)
                        {
                            videoDoorLockPage.UpdateState(pushMessageType);
                        }
                    }
                }
            });
        }
        #region  --------- 功能文件保存,删除 --------
        /// <summary>
        /// 保存本地文件