2020-12-21 1.解决房间修改图片后,分类页面对应房间图标没及时刷新问题。
11个文件已修改
87 ■■■■■ 已修改文件
.vs/HDL_APP_Project/xs/UserPrefs.xml 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/2-Classification/RoomPage.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/2-Classification/RoomPageBLL.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/ComplaintsPage.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.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>
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;
HDL_ON/UI/UI2/2-Classification/RoomPage.cs
old mode 100755 new mode 100644
@@ -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>
        /// 重载界面
HDL_ON/UI/UI2/2-Classification/RoomPageBLL.cs
old mode 100755 new mode 100644
@@ -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;
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;//解决有ImageBytes不加载ImagePath
                    addSceneImageView.ImagePath = scene.ImagePath;
                };
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;//解决有ImageBytes不加载ImagePath
                    addSceneImageView.ImagePath = scene.ImagePath;
                    scene.EditScene();
                };
HDL_ON/UI/UI2/4-PersonalCenter/AboutOn/ComplaintsPage.cs
@@ -10,6 +10,9 @@
    /// </summary>
    public class ComplaintsPage : FrameLayout
    {
        /// <summary>
        ///
        /// </summary>
        FrameLayout bodyView;
        /// <summary>
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/AddRoom/AddRoomPage.cs
old mode 100755 new mode 100644
@@ -644,6 +644,7 @@
                pictureOptionView.Parent.RemoveFromParent();
                Action<string> action = (obj) => {
                    room.backgroundImage = obj;
                    btnRoomBg.ImageBytes = null;//解决有ImageBytes不加载ImagePath
                    btnRoomBg.ImagePath = room.backgroundImage;
                };
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPage.cs
old mode 100755 new mode 100644
@@ -139,20 +139,25 @@
        /// 2020-12-02 解决删除房间后,界面不刷新删除房间问题
        /// </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()
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditPageBLL.cs
old mode 100755 new mode 100644
@@ -253,8 +253,10 @@
                Action<string> action = (obj) =>
                {
                    room.backgroundImage = obj;
                    btnRoomBg.ImageBytes = null;//解决有ImageBytes不加载ImagePath
                    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);
HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomsManagementPageBLL.cs
old mode 100755 new mode 100644
@@ -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;