From 301d3f15ba03ff942c029bd4c0b1ff544f7cfede Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 30 十二月 2020 11:19:48 +0800 Subject: [PATCH] 2020-12-30 1.解决RGB灯,色盘ColorPicker部分安卓手机,刷新图片时会变小问题 --- HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPageBLL.cs | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPageBLL.cs index 3823a72..efaa6ac 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPageBLL.cs @@ -103,8 +103,16 @@ lastButton.IsSelected = false; } btn.IsSelected = true; - showedFunctionRoomId = btn.Tag.ToString() == "0" ? null : btn.Tag.ToString(); - LoadFunctionListRow(allocatedList.FindAll((obj) => obj.roomIds.Contains(showedFunctionRoomId))); + //showedFunctionRoomId = btn.Tag.ToString() == "0" ? null : btn.Tag.ToString(); + showedFunctionRoomId = btn.Tag.ToString(); + if (showedFunctionRoomId == "0") + { + LoadFunctionListRow(allocatedList); + } + else + { + LoadFunctionListRow(allocatedList.FindAll((obj) => obj.roomIds.Contains(showedFunctionRoomId))); + } btnChoosedRoom.Text = chooseRoomName; dialog.Close(); }; @@ -133,7 +141,7 @@ { f.roomIds.Add(room.roomId); } - f.SaveFunctionData(true); + f.UpdataRoomIds(); } room.GetRoomFunctions(true); bodyView.RemoveFromParent(); -- Gitblit v1.8.0