From 320d7cc8feb394d0ce3db2ec1d01593b554d990f Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 23 十二月 2020 10:57:13 +0800 Subject: [PATCH] 2020-12-23 1.更新 --- HDL_ON/UI/UI2/2-Classification/RoomPage.cs | 33 +++++++++++++++++++++++++++++---- 1 files changed, 29 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/RoomPage.cs b/HDL_ON/UI/UI2/2-Classification/RoomPage.cs index ba2ba9a..ae0c8cc 100644 --- a/HDL_ON/UI/UI2/2-Classification/RoomPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/RoomPage.cs @@ -23,9 +23,25 @@ static Room room; Action skipEditPageAction; Action ReloadRoomName; + /// <summary> + /// 鍒犻櫎鎴块棿浜嬩欢 + /// </summary> + Action deleteAction; + /// <summary> + /// 鍥剧墖淇敼浜嬩欢 + /// </summary> + Action modifyImageAction; + #endregion - public RoomPage(Room r,Action rrn) + /// <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; @@ -34,6 +50,8 @@ LoadEvent_SkipEditRoomPage(); }; ReloadRoomName = rrn; + deleteAction = delAction; + this.modifyImageAction = modifyImageAction; } /// <summary> /// 閲嶈浇鐣岄潰 @@ -101,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, @@ -170,9 +189,15 @@ UnSelectedImagePath = "Collection/CollectionGrayIcon.png", IsSelected = scene.collect }; - bodyDiv.AddChidren(btnCollectionIcon); + //bodyDiv.AddChidren(btnCollectionIcon); + //2020-12-16 濡傛灉鏄垚鍛橀殣钘忔敹钘忓姛鑳� + if (!DB_ResidenceData.Instance.CurrentRegion.IsOthreShare) + { + bodyDiv.AddChidren(btnCollectionIcon); + } + btnIcon.UnSelectedImagePath = "FunctionIcon/Scene/SceneIcon.png"; - if ((scene as Scene).sceneType == SceneType.MovieScene) + if (scene.sceneType == SceneType.MovieScene) { var movieIcon = new Button() { @@ -199,7 +224,7 @@ btnCollectionIcon.MouseUpEventHandler += (sender, e) => { btnCollectionIcon.IsSelected = scene.collect = !btnCollectionIcon.IsSelected; - scene.SaveSceneData(); + scene.SaveSceneData(true); }; } /// <summary> -- Gitblit v1.8.0