| | |
| | | btnNote.InitControl();
|
| | | //划线
|
| | | btnNote.AddBottomLine();
|
| | | btnNote.txtInput.FinishInputEvent += () =>
|
| | | //如果是展示模板的话,不能编辑
|
| | | if (Common.Config.Instance.Home.IsShowTemplate == false)
|
| | | {
|
| | | string oldName = HdlGatewayLogic.Current.GetGatewayName(zbGateway);
|
| | | if (btnNote.Text == string.Empty)
|
| | | btnNote.txtInput.FinishInputEvent += () =>
|
| | | {
|
| | | btnNote.Text = oldName;
|
| | | }
|
| | | if (oldName != btnNote.Text)
|
| | | {
|
| | | //修改名字
|
| | | this.SetGatewayName(btnNote.Text, false);
|
| | | }
|
| | | };
|
| | | string oldName = HdlGatewayLogic.Current.GetGatewayName(zbGateway);
|
| | | if (btnNote.Text == string.Empty)
|
| | | {
|
| | | btnNote.Text = oldName;
|
| | | }
|
| | | if (oldName != btnNote.Text)
|
| | | {
|
| | | //修改名字
|
| | | this.SetGatewayName(btnNote.Text, false);
|
| | | }
|
| | | };
|
| | | }
|
| | |
|
| | | //设备类型 (固定智能网关)
|
| | | caption = Language.StringByID(R.MyInternationalizationString.uDeviceType);
|
| | |
| | | //变更网关房间
|
| | | HdlGatewayLogic.Current.ChangedGatewayRoom(this.zbGateway.GwId, roomKeys);
|
| | | };
|
| | | //如果是展示模板的话,不能编辑
|
| | | if (Common.Config.Instance.Home.IsShowTemplate == true)
|
| | | {
|
| | | rowBeloneArea.CanClick = false;
|
| | | }
|
| | |
|
| | | //所属住宅
|
| | | caption = Language.StringByID(R.MyInternationalizationString.uBelongResidence);
|
| | |
| | | rowFunction.frameTable.AddRightArrow();
|
| | | //底线
|
| | | rowFunction.frameTable.AddBottomLine();
|
| | | rowFunction.frameTable.ButtonClickEvent += (sender, e) =>
|
| | | //如果是展示模板的话,不能编辑
|
| | | if (Common.Config.Instance.Home.IsShowTemplate == false)
|
| | | {
|
| | | var form = new DeviceLight.MiniNightLightFunctionSettionForm();
|
| | | form.AddForm(miniDevice);
|
| | | };
|
| | | rowFunction.frameTable.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new DeviceLight.MiniNightLightFunctionSettionForm();
|
| | | form.AddForm(miniDevice);
|
| | | };
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | rowData.frameTable.AddRightArrow();
|
| | | //底线
|
| | | rowData.frameTable.AddBottomLine();
|
| | | rowData.frameTable.ButtonClickEvent += (sender, e) =>
|
| | | //如果是展示模板的话,不能编辑
|
| | | if (Common.Config.Instance.Home.IsShowTemplate == false)
|
| | | {
|
| | | var form = new GatewayUploadAndDownLoadForm();
|
| | | form.AddForm(this.zbGateway.GwId);
|
| | | };
|
| | | rowData.frameTable.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new GatewayUploadAndDownLoadForm();
|
| | | form.AddForm(this.zbGateway.GwId);
|
| | | };
|
| | | }
|
| | |
|
| | | //通用信息
|
| | | var btnGeneral = new FrameRowControl(listview.rowSpace / 2);
|
| | |
| | | var btnFinish = new BottomClickButton();
|
| | | btnFinish.TextID = R.MyInternationalizationString.uSave;
|
| | | bodyFrameLayout.AddChidren(btnFinish);
|
| | | //如果是展示模板的话,不能编辑
|
| | | if (Common.Config.Instance.Home.IsShowTemplate == true)
|
| | | {
|
| | | btnFinish.CanClick = false;
|
| | | }
|
| | | btnFinish.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | string oldName = HdlGatewayLogic.Current.GetGatewayName(zbGateway);
|
| | |
| | | }
|
| | | };
|
| | |
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | //如果是展示模板的话,不需要检测
|
| | | if (Common.Config.Instance.Home.IsShowTemplate == false)
|
| | | {
|
| | | //检测新版本
|
| | | this.CheckNewVersion(btnNewVersion);
|
| | | });
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | | {
|
| | | //检测新版本
|
| | | this.CheckNewVersion(btnNewVersion);
|
| | | });
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// </summary>
|
| | | private void InitTopRightMenu()
|
| | | {
|
| | | //如果是展示模板的话,不能编辑
|
| | | if (Common.Config.Instance.Home.IsShowTemplate == true)
|
| | | {
|
| | | return;
|
| | | }
|
| | | var btnIcon = new MostRightIconControl(69, 69);
|
| | | btnIcon.UnSelectedImagePath = "Item/More.png";
|
| | | topFrameLayout.AddChidren(btnIcon);
|