From b3abfd30576871c32f2839a322fa3bb783f96498 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期六, 12 十二月 2020 19:10:10 +0800
Subject: [PATCH] 2020-12-12 1.解锁逻辑优化

---
 HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs
index c98be11..b5bc984 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs
@@ -437,7 +437,7 @@
                     }.Show(bodyView);
                     return;
                 }
-                foreach (var tempRoom in DB_ResidenceData.residenceData.Rooms)
+                foreach (var tempRoom in SpatialInfo.CurrentSpatial.RoomList)
                 {
                     if (room.roomName == tempRoom.roomName)
                     {
@@ -503,7 +503,7 @@
             EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
             {
                 List<string> roomNameList = new List<string>();
-                foreach (var temp in DB_ResidenceData.residenceData.Rooms)
+                foreach (var temp in SpatialInfo.CurrentSpatial.RoomList)
                 {
                     roomNameList.Add(temp.roomName);
                 }
@@ -661,7 +661,7 @@
             {
                 //MainPage.Log("SelectPicture 瑁佸壀鍥剧墖杩斿洖璺緞: " + selectImagePath);
                 //1.璇诲彇瑁佸壀鍚庣殑鍥剧墖锛岀劧鍚庡垹闄�
-                var imageBytes = Shared.IO.FileUtils.ReadFile(selectImagePath);
+                var imageBytes = ImageUtlis.Current.ReadFile(selectImagePath);
                 System.IO.File.Delete(selectImagePath);
 
                 var waitPage = new Loading();
@@ -695,7 +695,7 @@
                                     System.IO.File.Delete(imageView.ImagePath);
                                 }
                                 //閲嶅懡鍚嶄繚瀛�
-                                Common.FileUtlis.Files.WriteFileByBytes(imageUrl, imageBytes);
+                                ImageUtlis.Current.WriteFileByBytes(imageUrl, imageBytes);
                                 imageView.ImagePath = null;
                                 imageView.ImageBytes = imageBytes;
                                 //涓婁紶鎴愬姛

--
Gitblit v1.8.0