| | |
| | | { |
| | | static FunctionList _FunctionList; |
| | | |
| | | //public static void ClearData() |
| | | //{ |
| | | // try |
| | | // { |
| | | // _FunctionList._IpCamImou = null; |
| | | // _FunctionList.ClearDatas(); |
| | | // _FunctionList = null; |
| | | // } |
| | | // catch (Exception ex) |
| | | // { |
| | | // MainPage.Log($"清理FunctionList异常:{ex.Message}"); |
| | | // _FunctionList = null; |
| | | // } |
| | | //} |
| | | |
| | | public static FunctionList List |
| | | { |
| | | get |
| | |
| | | { |
| | | return Functions.FindAll((obj) => obj.spk == SPK.MechanicalArm); |
| | | } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | public List<Function> GetDoorLockList() |
| | | { |
| | | var spkList = SPK.GetDoorLockSPKList(); |
| | | return Functions.FindAll((obj) => spkList.Contains(obj.spk)); |
| | | } |
| | | /// <summary> |
| | | /// 获取萤石视频门锁 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<Function> GetVideoDoorLockList() |
| | | { |
| | | var spkList = SPK.GetVideoDoorLockSPKList(); |
| | | return Functions.FindAll((obj) => spkList.Contains(obj.spk)); |
| | | } |
| | | |
| | |
| | | { |
| | | try |
| | | { |
| | | |
| | | _FunctionList = new FunctionList(); |
| | | } |
| | | catch (Exception ex) |