wei
2020-12-02 30b5770f56f99c1f92e933ad31cf7d2af58b033c
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/FloorsManagementPageBLL.cs
@@ -27,23 +27,23 @@
                        }.Show(bodyView);
                        return;
                    }
                    if (DB_ResidenceData.residenceData.floors.Find((obj) => obj.name == newName) != null)
                    if (Floor.InsFloor.Floors.Find((obj) => obj.roomName == newName) != null)
                    {
                        return;
                    }
                    else
                    {
                        floor.name = newName;
                        DB_ResidenceData.residenceData.SaveResidenceData();
                        floor.roomName = newName;
                        floor.SaveFloorData();
                        btn.Text = newName;
                        btnDel.Tag = newName;
                        row.Tag = newName;
                    }
                };
                var floors = new List<string>();
                foreach (var f in DB_ResidenceData.residenceData.floors)
                foreach (var f in Floor.InsFloor.Floors)
                {
                    floors.Add(f.name);
                    floors.Add(f.roomName);
                }
                new PublicAssmebly().LoadDialog_EditParater(StringId.EditFloorName, btn.Text, editCallBack,StringId.FloorNameCannotBeEmpty,
                    StringId.EditFloorFailed_FloorAlreadyExist,floors);
@@ -98,8 +98,8 @@
                {
                    return;
                }
                room.floorId = lastButton.Tag.ToString();
                room.floorId = lastButton.Tag.ToString();
                room.parentId = lastButton.Tag.ToString();
                room.parentId = lastButton.Tag.ToString();
                backAction?.Invoke();
                bodyView.RemoveFromParent();
                DB_ResidenceData.residenceData.SaveResidenceData();