黄学彪
2020-09-01 dee21bf452a8979d0515d13e534fbb69ed9715dd
ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelButtonSettionForm.cs
@@ -126,6 +126,11 @@
                //关闭自身
                this.CloseForm();
            };
            //如果当前是展示模板,则不能编辑
            if (Common.Config.Instance.Home.IsShowTemplate == true)
            {
                btnFinish.CanClick = false;
            }
        }
        /// <summary>
@@ -147,6 +152,9 @@
            listview.AddChidren(btnDeviceName);
            btnDeviceName.InitControl();
            btnDeviceName.AddBottomLine();
            //如果当前是展示模板,则不能编辑
            if (Common.Config.Instance.Home.IsShowTemplate == false)
            {
            btnDeviceName.txtInput.FinishInputEvent += () =>
            {
                string oldName = Common.LocalDevice.Current.GetDeviceEpointName(nowSelectDevice);
@@ -168,6 +176,7 @@
                    this.ShowMassage(ShowMsgType.Tip, msg);
                }
            };
            }
            //所属区域
            var rowBeloneArea = new BelongAreaControl(listview.rowSpace / 2);
@@ -202,7 +211,8 @@
        private void InitTopRightMenu()
        {
            //检测此回路是否拥有定位功能
            if (Common.LocalDevice.Current.DeviceIsCanFixedPosition(nowSelectDevice) == false)
            if (Common.LocalDevice.Current.DeviceIsCanFixedPosition(nowSelectDevice) == false
                || Common.Config.Instance.Home.IsShowTemplate == true)
            {
                return;
            }
@@ -373,6 +383,11 @@
                        btnSwitch.CanClick = true;
                    });
                };
                //如果当前是展示模板,则不能编辑
                if (Common.Config.Instance.Home.IsShowTemplate == true)
                {
                    btnSwitch.CanClick = false;
                }
                if (hadReadVibrationInfo == true)
                {
                    //不再读取