| | |
| | | { |
| | | deviceIds.Add(f.deviceId); |
| | | } |
| | | var bindResult = FunctionList.List.FunctionsBindRooms(new List<string>() { room.roomId }, deviceIds); |
| | | if (bindResult == StateCode.SUCCESS) |
| | | if (deviceIds.Count > 0) |
| | | { |
| | | foreach(var f in roomFunctions) |
| | | var bindResult = FunctionList.List.FunctionsBindRooms(new List<string>() { room.roomId }, deviceIds); |
| | | if (bindResult == StateCode.SUCCESS) |
| | | { |
| | | f.roomIds.Add(room.roomId); |
| | | foreach (var f in roomFunctions) |
| | | { |
| | | f.roomIds.Add(room.roomId); |
| | | } |
| | | room.GetRoomFunctions(true); |
| | | } |
| | | room.GetRoomFunctions(true); |
| | | } |
| | | else |
| | | { |
| | | //Utlis.ShowTip(Language.StringByID(StringId.EditFunctionInfoFail) + "\r\nCode:" + pack.Code); |
| | | } |
| | | backAction(room); |
| | | RemoveFromParent(); |