From eb5a57942bae8eb57fd7fb61124c247bebb67e8e Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期五, 19 六月 2020 10:18:28 +0800 Subject: [PATCH] Merge branch 'dev-tzy' into dev-2020xm --- Home0618/Shared/Phone/UserCenter/Device/DeviceMacInfoEditorForm.cs | 36 +++++++++++++++++++++++++++++++----- 1 files changed, 31 insertions(+), 5 deletions(-) diff --git a/Home0618/Shared/Phone/UserCenter/Device/DeviceMacInfoEditorForm.cs b/Home0618/Shared/Phone/UserCenter/Device/DeviceMacInfoEditorForm.cs index 726033a..ff185f2 100644 --- a/Home0618/Shared/Phone/UserCenter/Device/DeviceMacInfoEditorForm.cs +++ b/Home0618/Shared/Phone/UserCenter/Device/DeviceMacInfoEditorForm.cs @@ -294,7 +294,7 @@ } else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_SimpleEnvironment) { - //娣诲姞銆愮粦瀹氱洰鏍囥�戣(绠�绾︾幆澧冮潰鏉跨敤) + //娣诲姞銆愮粦瀹氱洰鏍囥�戣(绠�绾︾幆澧冮潰鏉跨敤) this.AddSimplePanelSettionRow(); } else @@ -603,6 +603,31 @@ form.AddForm(listNewDevice[0]); }; } + + #region 鈻� 绠�绾︾幆澧�(闈㈡澘)_____________________ + + /// <summary> + /// 娣诲姞銆愭寜閿缃�戣绠�绾︾幆澧�(闈㈡澘) + /// </summary> + private void AddSimplePanelSettionRow() + { + //鎸夐敭璁剧疆 + string caption = Language.StringByID(R.MyInternationalizationString.uPanelSettion); + var btnFunction = new FrameRowControl(listview.rowSpace / 2); + listview.AddChidren(btnFunction); + btnFunction.AddLeftCaption(caption, 600); + //鍚戝彸鍥炬爣 + btnFunction.AddRightArrow(); + //搴曠嚎 + btnFunction.AddBottomLine(); + btnFunction.ButtonClickEvent += (sender, e) => + { + var form = new DeviceBind.PanelSimpleEnvironmentTargetsForm(); + + }; + } + + #endregion #endregion #endregion @@ -1005,7 +1030,7 @@ #region 鈻� 绠�绾﹀鍔熻兘闈㈡澘鐢╛__________________ /// <summary> - /// 娣诲姞銆愮粦瀹氱洰鏍囥�戣 + /// 娣诲姞銆愮粦瀹氱洰鏍囥�戣 /// </summary> private void AddIBindRow(string deviceMac) { @@ -1056,7 +1081,7 @@ } device.Type = DeviceType.OnOffSwitch; device.DeviceAddr = deviceMac; - device.DeviceEpoint = 65;//鑳界粦瀹氭箍搴︾殑鍥炶矾 + device.DeviceEpoint = 65;//鑳界粦瀹氭箍搴︾殑鍥炶矾 var paneTargetsBaseFormp = new PaneTargetsBaseForm(device, bindHumidityDev, BindInfo.BindType.Temperature); Shared.Phone.UserView.HomePage.Instance.AddChidren(paneTargetsBaseFormp); Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; @@ -1077,6 +1102,7 @@ }; }; } + #endregion /// <summary> /// 娓╁害鏉ユ簮琛� @@ -1107,7 +1133,7 @@ } device.Type = DeviceType.OnOffSwitch; device.DeviceAddr = deviceMac; - device.DeviceEpoint = 64;//鑳界粦瀹氭俯搴︾殑鍥炶矾 + device.DeviceEpoint = 64;//鑳界粦瀹氭俯搴︾殑鍥炶矾 var paneTargetsBaseFormp = new PaneTargetsBaseForm(device, bindHumidityDev, BindInfo.BindType.Temperature); Shared.Phone.UserView.HomePage.Instance.AddChidren(paneTargetsBaseFormp); Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; @@ -1356,7 +1382,7 @@ btnNewVersion.Visible = false; btnNewVersion.X = Application.GetRealWidth(242); btnNewVersion.Y = Application.GetRealHeight(23); - rowUpDate.AddChidren(btnNewVersion, ChidrenBindMode.BindEventOnly); + rowUpDate.AddChidren(btnNewVersion, ChidrenBindMode.BindEvent); rowUpDate.ButtonClickEvent += (sender, e) => { -- Gitblit v1.8.0