wxr
2020-04-21 f718d23a262a5a8e1241fdeaeb4153399f95e79d
HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditFunctionPageBLL.cs
@@ -31,7 +31,7 @@
                btnAllocated.TextSize = CSS_FontSize.TextFontSize;
                btnChoosedRoom.Visible = false;
                btnChooseRoomIcon.Visible = false;
                LoadFunctionListRow(true);
                LoadFunctionListRow(unallocatedList);
            };
            btnAllocated.MouseUpEventHandler = (sender, e) => {
                btnUnallocated.IsSelected = false;
@@ -42,7 +42,7 @@
                btnUnallocated.TextSize = CSS_FontSize.TextFontSize;
                btnChoosedRoom.Visible = true;
                btnChooseRoomIcon.Visible = true;
                LoadFunctionListRow(false);
                LoadFunctionListRow(allocatedList);
            };
        }
@@ -55,22 +55,22 @@
                btn.IsSelected = !btn.IsSelected;
                if (btn.IsSelected)
                {
                    function.roomIdList.Add(roomId);
                    function.roomIdList.Add(room.sid);
                }
                else
                {
                    function.roomIdList.Remove(roomId);
                    function.roomIdList.Remove(room.sid);
                }
            };
            btn.MouseUpEventHandler = (sender, e) => {
                btn.IsSelected = !btn.IsSelected;
                if (btn.IsSelected)
                {
                    function.roomIdList.Add(roomId);
                    function.roomIdList.Add(room.sid);
                }
                else
                {
                    function.roomIdList.Remove(roomId);
                    function.roomIdList.Remove(room.sid);
                }
            };
        }
@@ -104,7 +104,7 @@
                }
                btn.IsSelected = true;
                showedFunctionRoomId = btn.Tag.ToString() == "0" ? null : btn.Tag.ToString();
                LoadFunctionListRow(false);
                LoadFunctionListRow(allocatedList.FindAll((obj) => obj.roomIdList.Contains(showedFunctionRoomId)));
                btnChoosedRoom.Text = chooseRoomName;
                dialog.Close();
            };
@@ -117,7 +117,7 @@
        {
            btnConfrim.MouseUpEventHandler = (sender, e) => {
                DB_ResidenceData.residenceData.SaveResidenceData();
                DB_ResidenceData.residenceData.rooms.Find((obj) => obj.sid == roomId).RefreshFunctions();
                room.RefreshFunctions();
                bodyView.RemoveFromParent();
            };
        }