wei
2020-12-24 130a9b9cf4f5cd6ed8c11cb9cd4780f8b7da8bec
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();