黄学彪
2020-09-01 dee21bf452a8979d0515d13e534fbb69ed9715dd
ZigbeeApp/Shared/Phone/UserCenter/Residence/EditorRoomInforForm.cs
@@ -109,7 +109,7 @@
            btnZhezhao.Radius = (uint)Application.GetRealHeight(17);
            listBackControl.frameTable.AddChidren(btnZhezhao);
            //分享的房间不能编辑
            if (this.editorRoom.IsSharedRoom == false)
            if (this.editorRoom.IsSharedRoom == false && Common.Config.Instance.Home.IsShowTemplate == false)
            {
                btnZhezhao.MouseUpEventHandler += (sender, e) =>
                {
@@ -140,6 +140,7 @@
            {
                txtRoomName = new FrameCaptionInputControl(Language.StringByID(R.MyInternationalizationString.uRoomName), this.cloneRoom.Name, this.listview.rowSpace / 2);
                txtRoomName.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputRoomName);
                txtRoomName.txtInput.MaxByte = 48;//限制只能输入48个字节
                listview.AddChidren(txtRoomName);
                txtRoomName.InitControl();
                //底线
@@ -166,7 +167,7 @@
                //底线
                btnBelone.AddBottomLine();
                //分享的房间不能修改
                if (this.editorRoom.IsSharedRoom == false)
                if (this.editorRoom.IsSharedRoom == false && Common.Config.Instance.Home.IsShowTemplate == false)
                {
                    //右箭头
                    btnBelone.AddRightArrow();
@@ -188,7 +189,8 @@
            //底线
            rowTemperature.AddBottomLine();
            //分享的房间不能修改 或者当前住宅不是虚拟的
            if (this.editorRoom.IsSharedRoom == false && Common.Config.Instance.Home.IsVirtually == false)
            if (this.editorRoom.IsSharedRoom == false && Common.Config.Instance.Home.IsVirtually == false
                && Common.Config.Instance.Home.IsShowTemplate == false)
            {
                rowTemperature.ButtonClickEvent += (sender, e) =>
                {
@@ -196,7 +198,8 @@
                    this.ShowTemperatrueDevice(btnTemper);
                };
            }
            if (string.IsNullOrEmpty(cloneRoom.TemperatrueDevice) == false)
            if (string.IsNullOrEmpty(cloneRoom.TemperatrueDevice) == false
                && Common.Config.Instance.Home.IsShowTemplate == false)
            {
                //获取温度
                this.GetTemperatrueValue(btnTemper, cloneRoom.TemperatrueDevice);
@@ -212,7 +215,8 @@
            //底线
            rowHumidity.AddBottomLine();
            //分享的房间不能修改 或者当前住宅不是虚拟的
            if (this.editorRoom.IsSharedRoom == false && Common.Config.Instance.Home.IsVirtually == false)
            if (this.editorRoom.IsSharedRoom == false && Common.Config.Instance.Home.IsVirtually == false
                && Common.Config.Instance.Home.IsShowTemplate == false)
            {
                rowHumidity.ButtonClickEvent += (sender, e) =>
                {
@@ -220,7 +224,8 @@
                    this.ShowHumidityDevice(btnHumi);
                };
            }
            if (string.IsNullOrEmpty(cloneRoom.HumidityDevice) == false)
            if (string.IsNullOrEmpty(cloneRoom.HumidityDevice) == false
                && Common.Config.Instance.Home.IsShowTemplate == false)
            {
                //获取湿度
                this.GetHumidityValue(btnHumi, cloneRoom.HumidityDevice);
@@ -231,7 +236,7 @@
            tableContr = null;
            //分享的房间不能保存
            if (this.editorRoom.IsSharedRoom == true)
            if (this.editorRoom.IsSharedRoom == true|| Common.Config.Instance.Home.IsShowTemplate == true)
            {
                return;
            }