| | |
| | | { |
| | | deviceList = new DevcieApiPack(); |
| | | } |
| | | { |
| | | if (FunctionList.List.GetDeviceFunctionList().Count > 0) |
| | | { |
| | | for (int i = 0; i < FunctionList.List.GetDeviceFunctionList().Count;) |
| | |
| | | deviceList.list.Remove(newFunction);//操作完的数据清理掉,剩下的就是新增的功能 |
| | | } |
| | | } |
| | | } |
| | | //处理剩下的新增功能 |
| | | foreach (var newFunction in deviceList.list) |
| | | { |
| | |
| | | if (sceneList == null) |
| | | { |
| | | sceneList = new List<Scene>(); |
| | | } |
| | | for (int i = 0; i < FunctionList.List.scenes.Count;) |
| | | { |
| | | var localScene = FunctionList.List.scenes[i]; |
| | |
| | | } |
| | | sceneList.Remove(newScene);//操作完的数据清理掉,剩下的就是新增的功能 |
| | | } |
| | | } |
| | | //处理剩下的新增功能 |
| | | foreach (var newScene in sceneList) |
| | | foreach (var tempScene in sceneList) |
| | | { |
| | | newScene.SaveSceneFile(); |
| | | FunctionList.List.scenes.Add(newScene); |
| | | tempScene.SaveSceneFile(); |
| | | FunctionList.List.scenes.Add(tempScene); |
| | | } |
| | | } |
| | | //如果是一端口需要提前下载场景数据,否则控制不了一端口场景 |