wxr
2020-12-17 1a13c963a5fb8cad92bf03667e411f46d6a6a843
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs
@@ -31,6 +31,12 @@
            {
                Action action = () =>
                {
                    var waitPage = new Loading();
                    waitPage.Start();
                    new Thread(() =>
                    {
                        try
                        {
                    var delResult = SpatialInfo.CurrentSpatial.DelRoom(room);
                    if (delResult == StateCode.SUCCESS)
                    {
@@ -41,15 +47,33 @@
                                f.roomIds.Remove(room.roomId);
                            }
                        }
                                Application.RunOnMainThread(() =>
                                {
                        //删除事件回调
                        this.deleteAction?.Invoke();
                        this.RemoveFromParent();
                                });
                    }
                        }
                        catch (Exception ex)
                        {
                            MainPage.Log($"添加房间失败msg:{ex.Message}");
                        }
                        finally
                        {
                            Application.RunOnMainThread(() =>
                            {
                                waitPage.Hide();
                            });
                        }
                    })
                    { IsBackground = true }.Start();
                };
                new PublicAssmebly().TipOptionMsg(StringId.Tip, StringId.DeleteRoomTip, action);
            };
        }
        /// <summary>
        /// 显示背景图选择选项
        /// </summary>