| | |
| | | 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) =>
|
| | | {
|
| | |
| | | {
|
| | | 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();
|
| | | //底线
|
| | |
| | | //底线
|
| | | btnBelone.AddBottomLine();
|
| | | //分享的房间不能修改
|
| | | if (this.editorRoom.IsSharedRoom == false)
|
| | | if (this.editorRoom.IsSharedRoom == false && Common.Config.Instance.Home.IsShowTemplate == false)
|
| | | {
|
| | | //右箭头
|
| | | btnBelone.AddRightArrow();
|
| | |
| | | //底线
|
| | | 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) =>
|
| | | {
|
| | |
| | | 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);
|
| | |
| | | //底线
|
| | | 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) =>
|
| | | {
|
| | |
| | | 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);
|
| | |
| | | tableContr = null;
|
| | |
|
| | | //分享的房间不能保存
|
| | | if (this.editorRoom.IsSharedRoom == true)
|
| | | if (this.editorRoom.IsSharedRoom == true|| Common.Config.Instance.Home.IsShowTemplate == true)
|
| | | {
|
| | | return;
|
| | | }
|