wei
2020-12-24 d1af1b8337591363e60c286348501a841138dbb3
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>
        /// 重载界面
@@ -107,6 +119,7 @@
            }
            foreach (var scene in room.GetRoomScenes(false))
            {
                functionListView.AddChidren(new Button() { Height = Application.GetRealHeight(12) });
                var sceneRow = new FrameLayout()
                {
                    Gravity = Gravity.CenterHorizontal,
@@ -211,7 +224,7 @@
            btnCollectionIcon.MouseUpEventHandler += (sender, e) =>
            {
                btnCollectionIcon.IsSelected = scene.collect = !btnCollectionIcon.IsSelected;
                scene.SaveSceneData(true);
                scene.CollectScene();
            };
        }
        /// <summary>