wei
2020-12-02 30b5770f56f99c1f92e933ad31cf7d2af58b033c
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs
@@ -27,7 +27,7 @@
            skipAddRoomAction = (type, floor) =>
            {
                Room newRoom = new Room() {
                    sid = Guid.NewGuid().ToString(),
                    uid = Guid.NewGuid().ToString(),
                };
                editBackAction = () => {            
                    LoadRoomRow(newRoom);
@@ -43,15 +43,15 @@
        /// <summary>
        /// 跳转到编辑房间的界面
        /// </summary>
        void LoadEvent_SkipEditRoomPage(Room r,Button btnRoomName,Button btnBg)
        void LoadEvent_SkipEditRoomPage(Room r, Button btnRoomName, ImageView btnBg)
        {
            editBackAction = () =>
            {
                if (string.IsNullOrEmpty(r.sid))
                if (string.IsNullOrEmpty(r.uid))
                {
                    for (int i = 0; i < roomsListView.ChildrenCount; )
                    {
                        if (roomsListView.GetChildren(i).Tag.ToString() == r.name + "line" || roomsListView.GetChildren(i).Tag.ToString() == r.name + "row")
                        if (roomsListView.GetChildren(i).Tag.ToString() == r.roomName + "line" || roomsListView.GetChildren(i).Tag.ToString() == r.roomName + "row")
                        {
                            roomsListView.GetChildren(i).RemoveFromParent();
                        }
@@ -63,8 +63,8 @@
                }
                else
                {
                    btnRoomName.Text = r.floorName + r.name;
                    btnBg.UnSelectedImagePath = r.backgroundImage;
                    btnRoomName.Text = r.floorName + r.roomName;
                    btnBg.ImagePath = r.backgroundImage;
                }
            };
            var skipPage = new RoomEditPage(r, StringId.EditRoomInfo,editBackAction);