From 9c16d3614d9b88c637f967518a329f239fcd3aaf Mon Sep 17 00:00:00 2001 From: lss <316519258@qq.com> Date: 星期五, 12 六月 2020 09:22:04 +0800 Subject: [PATCH] 2020.06.12 --- ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs b/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs index d89aea9..a51a0e1 100755 --- a/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs +++ b/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs @@ -676,7 +676,7 @@ //閭d釜鐗规畩鐨勬帶浠� this.frameBottomTemp = new FrameLayout(); frameBottomTemp.Height = bodyFrameLayout.Height - btnTemp.Yaxis + Application.GetRealHeight(23); - this.listBodyControl.AddChidrenFrame(frameBottomTemp); + this.listBodyControl.AddChidren(frameBottomTemp); } #endregion @@ -822,6 +822,9 @@ this.editorScene.IconPath = this.cloneScene.IconPath; this.editorScene.Save(); + //鏂板缓鍦烘櫙,涓婚〉闇�瑕侀噸鏂板埛鏂� + UserView.UserPage.Instance.RefreshForm = true; + HdlThreadLogic.Current.RunMain(() => { //璋冪敤鍥炶皟鍑芥暟 @@ -861,6 +864,15 @@ //鍙樻洿鎴块棿 HdlSceneLogic.Current.ChangedSceneRoom(this.editorScene, this.nowRoomId); } + else + { + //绉婚櫎鍑烘埧闂� + var room = HdlRoomLogic.Current.GetRoomBySceneId(this.editorScene.Id); + if (room != null) + { + HdlSceneLogic.Current.DeleteSceneFromRoom(room, this.editorScene); + } + } //鍥剧墖鏀瑰彉浜� if (isScenePictrueChanged == true) @@ -889,6 +901,9 @@ this.editorScene.IconPath = this.cloneScene.IconPath; this.editorScene.Save(); + //缂栬緫鍦烘櫙,涓婚〉闇�瑕侀噸鏂板埛鏂� + UserView.UserPage.Instance.RefreshForm = true; + HdlThreadLogic.Current.RunMain(() => { //璋冪敤鍥炶皟鍑芥暟 -- Gitblit v1.8.0