From 42368161d6b795058dfc99ee9774aaf3f69e81d4 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期三, 07 七月 2021 15:24:19 +0800 Subject: [PATCH] 2021-07-07 15:11:03 --- HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/FloorsManagementPageBLL.cs | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/FloorsManagementPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/FloorsManagementPageBLL.cs index de7355a..93eea05 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/FloorsManagementPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/FloorsManagementPageBLL.cs @@ -40,13 +40,17 @@ { try { + var oldName = floor.roomName; + floor.roomName = newName; var editResult = SpatialInfo.CurrentSpatial.UpdateFloor(floor); Application.RunOnMainThread(() => { if (editResult == DAL.Server.StateCode.SUCCESS) { - floor.roomName = newName; btn.Text = newName; + }else + { + floor.roomName = oldName; } }); } -- Gitblit v1.8.0