From c1de48884fa145a16a0f8bcee93274dcfaa0ff82 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 07 五月 2020 10:40:28 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into dev-2020xm --- ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs b/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs index 8ee6132..d89aea9 100755 --- a/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs +++ b/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs @@ -259,7 +259,7 @@ /// </summary> private void InitAddTargetControl() { - if (this.frameTargetTableControl == null) + if (this.frameTargetTableControl == null || this.frameTargetTableControl.Parent == null) { //娣诲姞鐩爣鐨勭殑瀹瑰櫒鎺т欢 this.frameTargetTableControl = new FrameListControl(); @@ -295,8 +295,11 @@ { //浠庣綉鍏宠幏鍙栧満鏅殑鎵ц鐩爣 var result = await this.GetSceneTargetList(); - //娣诲姞銆愭墽琛岀洰鏍囪銆� - this.AddTargetRow(); + if (result == true) + { + //娣诲姞銆愭墽琛岀洰鏍囪銆� + this.AddTargetRow(); + } }); } @@ -636,6 +639,7 @@ { return true; } + //鎵撳紑杩涘害鏉� this.ShowProgressBar(); //鑾峰彇鎵ц鐩爣鍒楄〃 -- Gitblit v1.8.0