From 20e0fb92d25047fabd2dc418597c0ff9b595b07c Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期一, 21 十二月 2020 19:35:33 +0800 Subject: [PATCH] 2020-12-21 1.解决房间修改图片后,分类页面对应房间图标没及时刷新问题。 --- HDL_ON/UI/UI2/2-Classification/RoomPageBLL.cs | 2 HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/ComplaintsPage.cs | 3 + HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs | 6 ++ HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs | 1 HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs | 1 HDL_ON/UI/UI2/2-Classification/RoomPage.cs | 14 ++++++ HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs | 9 ++++ HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs | 1 HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs | 11 ++++- .vs/HDL_APP_Project/xs/UserPrefs.xml | 36 ++++++------------ HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs | 3 + 11 files changed, 56 insertions(+), 31 deletions(-) diff --git a/.vs/HDL_APP_Project/xs/UserPrefs.xml b/.vs/HDL_APP_Project/xs/UserPrefs.xml index 00174f6..56513c9 100644 --- a/.vs/HDL_APP_Project/xs/UserPrefs.xml +++ b/.vs/HDL_APP_Project/xs/UserPrefs.xml @@ -1,34 +1,22 @@ -锘�<Properties StartupConfiguration="{09712674-2A38-407B-B1E2-560B2C352F9A}|Default"> - <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.08FD445C-3EE8-4ED2-BF28-B42ADD0DA92C" /> - <MonoDevelop.Ide.Workbench ActiveDocument="HDL_ON/Common/Constant.cs"> +锘�<Properties StartupConfiguration="{D998E133-F0DD-4760-BE3C-461632F54DA4}|Default"> + <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget.00008030-00014C392121802E" /> + <MonoDevelop.Ide.Workbench ActiveDocument="HDL_ON/DAL/Server/HttpServerRequest.cs"> <Files> - <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/ComplaintsPage.cs" Line="1" Column="1" /> - <File FileName="HDL_ON/DAL/Server/HttpUtil.cs" /> - <File FileName="HDL_ON/UI/MainPage.cs" Line="26" Column="22" /> - <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/FunctionIntroductionPage.cs" Line="181" Column="23" /> - <File FileName="HDL_ON/DAL/Server/NewApiRes.cs" Line="1135" Column="51" /> - <File FileName="HDL_ON/DAL/Server/HttpServerRequest.cs" Line="2094" Column="9" /> - <File FileName="HDL_ON/Common/Constant.cs" Line="192" Column="16" /> + <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs" Line="1" Column="1" /> + <File FileName="HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs" Line="646" Column="48" /> + <File FileName="HDL_ON/UI/UI0-Public/GalleryPage.cs" Line="12" Column="45" /> + <File FileName="HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs" Line="774" Column="1" /> + <File FileName="HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs" Line="795" Column="1" /> + <File FileName="HDL_ON/DAL/Server/HttpServerRequest.cs" Line="971" Column="1" /> </Files> <Pads> <Pad Id="ProjectPad"> <State name="__root__"> <Node name="HDL_APP_Project" expanded="True"> <Node name="HDL_ON" expanded="True"> - <Node name="Common" expanded="True"> - <Node name="Constant.cs" selected="True" /> - </Node> <Node name="DAL" expanded="True"> - <Node name="Server" expanded="True" /> - </Node> - <Node name="UI" expanded="True"> - <Node name="UI0-Public" expanded="True" /> - <Node name="UI1-Login" expanded="True" /> - <Node name="UI2" expanded="True"> - <Node name="4-PersonalCenter" expanded="True"> - <Node name="AboutOn" expanded="True" /> - <Node name="UnlockSetting" expanded="True" /> - </Node> + <Node name="Server" expanded="True"> + <Node name="HttpServerRequest.cs" selected="True" /> </Node> </Node> </Node> @@ -46,7 +34,7 @@ <String>Shared.Droid.TouchID/Shared.Droid.TouchID.csproj</String> <String>Shared.IOS/Shared.IOS.csproj</String> </DisabledProjects> - <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" /> + <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhone" /> <MonoDevelop.Ide.ItemProperties.HDL-ON__Android PreferredExecutionTarget="Android.364c4b3158493098" /> <MonoDevelop.Ide.DebuggingService.Breakpoints> <BreakpointStore> diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs index bb1153b..dd81a73 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs @@ -373,7 +373,14 @@ roomView.RemoveFromParent(); }; - var view = new RoomPage(room, ReloadRoomName, deleteAction); + //鎴块棿鑳屾櫙鍥句慨鏀逛簨浠跺洖璋� + Action modifyImageAction = () => + { + //roomViewbg.ImagePath = room.backgroundImage; + ImageUtlis.Current.LoadLocalOrNetworkImages(room.backgroundImage, roomViewbg); + }; + + var view = new RoomPage(room, ReloadRoomName, deleteAction, modifyImageAction); MainPage.BasePageView.AddChidren(view); view.LoadPage(); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; diff --git a/HDL_ON/UI/UI2/2-Classification/RoomPage.cs b/HDL_ON/UI/UI2/2-Classification/RoomPage.cs old mode 100755 new mode 100644 index df76e35..ae0c8cc --- a/HDL_ON/UI/UI2/2-Classification/RoomPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/RoomPage.cs @@ -27,10 +27,21 @@ /// 鍒犻櫎鎴块棿浜嬩欢 /// </summary> Action deleteAction; + /// <summary> + /// 鍥剧墖淇敼浜嬩欢 + /// </summary> + Action modifyImageAction; #endregion - public RoomPage(Room r, Action rrn, Action delAction) + /// <summary> + /// + /// </summary> + /// <param name="r"></param> + /// <param name="rrn">缂栬緫浜嬩欢</param> + /// <param name="delAction">鍒犻櫎浜嬩欢鍥炶皟</param> + /// <param name="modifyImageAction">鎴块棿鑳屾櫙鍥句慨鏀逛簨浠跺洖璋�</param> + public RoomPage(Room r, Action rrn, Action delAction, Action modifyImageAction) { bodyView = this; room = r; @@ -40,6 +51,7 @@ }; ReloadRoomName = rrn; deleteAction = delAction; + this.modifyImageAction = modifyImageAction; } /// <summary> /// 閲嶈浇鐣岄潰 diff --git a/HDL_ON/UI/UI2/2-Classification/RoomPageBLL.cs b/HDL_ON/UI/UI2/2-Classification/RoomPageBLL.cs old mode 100755 new mode 100644 index 6686309..3e9cd4e --- a/HDL_ON/UI/UI2/2-Classification/RoomPageBLL.cs +++ b/HDL_ON/UI/UI2/2-Classification/RoomPageBLL.cs @@ -40,7 +40,7 @@ deleteAction?.Invoke(); }; - var skipPage = new RoomEditPage(room, editBackAction, delAction); + var skipPage = new RoomEditPage(room, editBackAction, delAction, this.modifyImageAction); MainPage.BasePageView.AddChidren(skipPage); skipPage.LoadPage(); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs index 9a804fc..1d6d10a 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs @@ -768,6 +768,7 @@ pictureOptionView.Parent.RemoveFromParent(); Action<string> action = (obj) => { scene.ImagePath = obj; + addSceneImageView.ImageBytes = null;//瑙e喅鏈塈mageBytes涓嶅姞杞絀magePath addSceneImageView.ImagePath = scene.ImagePath; }; diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs index f08c953..42808ff 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs @@ -788,6 +788,7 @@ pictureOptionView.Parent.RemoveFromParent(); Action<string> action = (obj) => { scene.ImagePath = obj; + addSceneImageView.ImageBytes = null;//瑙e喅鏈塈mageBytes涓嶅姞杞絀magePath addSceneImageView.ImagePath = scene.ImagePath; scene.EditScene(); }; diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/ComplaintsPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/ComplaintsPage.cs index c675c8e..a1e1540 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/ComplaintsPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/ComplaintsPage.cs @@ -10,6 +10,9 @@ /// </summary> public class ComplaintsPage : FrameLayout { + /// <summary> + /// + /// </summary> FrameLayout bodyView; /// <summary> diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs old mode 100755 new mode 100644 index fccf6c8..802a739 --- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs @@ -644,6 +644,7 @@ pictureOptionView.Parent.RemoveFromParent(); Action<string> action = (obj) => { room.backgroundImage = obj; + btnRoomBg.ImageBytes = null;//瑙e喅鏈塈mageBytes涓嶅姞杞絀magePath btnRoomBg.ImagePath = room.backgroundImage; }; diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs old mode 100755 new mode 100644 index a43c157..77b552f --- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs @@ -139,20 +139,25 @@ /// 2020-12-02 瑙e喅鍒犻櫎鎴块棿鍚庯紝鐣岄潰涓嶅埛鏂板垹闄ゆ埧闂撮棶棰� /// </summary> Action deleteAction; + /// <summary> + /// 鍥剧墖淇敼浜嬩欢 + /// </summary> + Action modifyImageAction; /// <summary> /// /// </summary> /// <param name="r"></param> - /// <param name="tId"></param> /// <param name="action"></param> - /// <param name="delAction">鍒犻櫎鎴块棿浜嬩欢</param> - public RoomEditPage(Room r, Action action, Action delAction) + /// <param name="delAction">鎴块棿鍒犻櫎浜嬩欢</param> + /// <param name="modifyImageAction">鎴块棿鑳屾櫙鍥句慨鏀逛簨浠跺洖璋�</param> + public RoomEditPage(Room r, Action action, Action delAction, Action modifyImageAction) { bodyView = this; room = r; backAction = action; this.deleteAction = delAction; + this.modifyImageAction = modifyImageAction; } public void LoadPage() diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs old mode 100755 new mode 100644 index 4b4d2fe..dc3836b --- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs @@ -253,8 +253,10 @@ Action<string> action = (obj) => { room.backgroundImage = obj; + btnRoomBg.ImageBytes = null;//瑙e喅鏈塈mageBytes涓嶅姞杞絀magePath btnRoomBg.ImagePath = room.backgroundImage; room.SaveRoomData(); + modifyImageAction?.Invoke(); }; var galleryPage = new RoomGalleryPage(room.backgroundImage, action); @@ -282,6 +284,7 @@ //2020-12-03 闇�瑕佽鏈�鏂扮殑鍥剧墖璺緞鍚屾鍒颁簯绔� room.backgroundImage = imageUrl; room.SaveRoomData(); + modifyImageAction?.Invoke(); }; //涓婁紶鍥剧墖鍒颁簯绔� UploadImage(selectImagePath, btnRoomBg, room, uploadSuccessAction); diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs old mode 100755 new mode 100644 index dec1a64..b7d50e8 --- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs @@ -62,7 +62,11 @@ roomRow.RemoveFromParent(); }; - var skipPage = new RoomEditPage(r, editBackAction, deleteAction); + Action modifyImageAction = () => { + ImageUtlis.Current.LoadLocalOrNetworkImages(r.backgroundImage, btnBg); + }; + + var skipPage = new RoomEditPage(r, editBackAction, deleteAction, modifyImageAction); MainPage.BasePageView.AddChidren(skipPage); skipPage.LoadPage(); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; -- Gitblit v1.8.0