| | |
| | | |
| | | action = () => |
| | | { |
| | | { |
| | | #region WJC |
| | | if (doorLock == null) |
| | | { |
| | | ///防止抛异常 |
| | | doorLock = new ZigBee.Device.DoorLock(); |
| | | } |
| | | Shared.Phone.Device.Logic.Send.CurrentDoorLock = doorLock; |
| | | ///进来刷新一次设备列表; |
| | | Common.Logic.LogicDviceList.Clear(); |
| | | if (Common.Logic.LogicDviceList.Count == 0) |
| | | { |
| | | Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray()); |
| | | } |
| | | var addLogicPage = new Shared.Phone.Device.Logic.SoneLogicList(); |
| | | UserView.HomePage.Instance.AddChidren(addLogicPage); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | addLogicPage.Show(() => |
| | | { |
| | | UpdateNomallyOpenStatus();//徐梅的方法 |
| | | }); |
| | | //系统密码支持操作门锁后,调用温居城的界面【常开自动化】 |
| | | #endregion |
| | | } |
| | | |
| | | Shared.Phone.Device.Logic.SkipView.SkipAddLogic(2, doorLock); |
| | | //系统密码支持操作门锁后,调用温居城的界面【常开自动化】 |
| | | // functionSetting.aaaAction = () => |
| | | //{ |
| | | // UpdateNomallyOpenStatus(); |
| | | //}; |
| | | }; |
| | | HdlCheckLogic.Current.CheckSecondarySecurity(action); |
| | | #endregion |