| | |
| | | { |
| | | 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 void ClearData() |
| | | //{ |
| | | // try |
| | | // { |
| | | // _FunctionList._IpCamImou = null; |
| | | // _FunctionList.ClearDatas(); |
| | | // _FunctionList = null; |
| | | // } |
| | | // catch (Exception ex) |
| | | // { |
| | | // MainPage.Log($"清理FunctionList异常:{ex.Message}"); |
| | | // _FunctionList = null; |
| | | // } |
| | | //} |
| | | |
| | | public static FunctionList List |
| | | { |
| | |
| | | /// 功能列表 |
| | | /// </summary> |
| | | public List<Function> Functions = new List<Function>(); |
| | | /// <summary> |
| | | /// 群控列表 |
| | | /// </summary> |
| | | public List<GroupControl> groupControls = new List<GroupControl>(); |
| | | |
| | | |
| | | /// <summary> |
| | | /// 机械臂列表 |
| | | /// </summary> |
| | |
| | | var spkList = new List<string>() |
| | | { |
| | | SPK.SensorPir, |
| | | SPK.SensorPirHold, |
| | | SPK.SensorDoorWindow, |
| | | SPK.SensorSmoke, |
| | | SPK.SensorWater, |
| | |
| | | var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<SecurityAlarm>(dataString); |
| | | if (temp == null) |
| | | { |
| | | MainPage.Log("null"); |
| | | MainPage.Log("SecurityData_null"); |
| | | FileUtlis.Files.DeleteFile(filePath); |
| | | return; |
| | | } |