| | |
| | | /// </summary> |
| | | public List<Function> GetAllDeviceFunctionList() |
| | | { |
| | | //if (deviceFunctionList == null) |
| | | if (deviceFunctionList == null || deviceFunctionList.Count == 0) |
| | | { |
| | | deviceFunctionList = new List<Function>(); |
| | | deviceFunctionList.AddRange(aCs); |
| | |
| | | //{ IsBackground = true }.Start(); |
| | | for (int i =0;i < List.GetAllDeviceFunctionList().Count;) |
| | | { |
| | | var localFunction = List.GetAllDeviceFunctionList()[0]; |
| | | var localFunction = List.GetAllDeviceFunctionList()[i]; |
| | | var newFunction = deviceList.list.Find((obj) => obj.deviceId == localFunction.deviceId); |
| | | if (newFunction == null)//如果云端最新数据没有该条数据,则本地需要删掉该数据记录 |
| | | { |