黄学彪
2020-05-09 21736b2944d5e88cd705a39ff87fd73d5a16e609
ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs
@@ -159,8 +159,8 @@
            //场景图片
            this.btnScenePic = new ImageView();
            btnScenePic.Y = Application.GetRealHeight(46);
            btnScenePic.Width = Application.GetMinRealAverage(887);
            btnScenePic.Height = Application.GetMinRealAverage(444);
            btnScenePic.Width = this.GetPictrueRealSize(887);
            btnScenePic.Height = this.GetPictrueRealSize(444);
            btnScenePic.Radius = (uint)Application.GetRealHeight(17);
            btnScenePic.Gravity = Gravity.CenterHorizontal;
            if (this.editorScene == null)
@@ -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();
            //获取执行目标列表