| | |
| | | } |
| | | else if (deviceEnumInfo.ConcreteType == DeviceConcreteType.ButtonPanel_SimpleEnvironment)
|
| | | { |
| | | //添加【绑定目标】行(简约环境面板用) |
| | | //添加【绑定目标】行(简约环境面板用) |
| | | this.AddSimplePanelSettionRow();
|
| | | }
|
| | | else
|
| | |
| | | var form = new DevicePanel.PanelSimpleEnvironmentButtonSettionForm(); |
| | | form.AddForm(listNewDevice[0]);
|
| | | };
|
| | | }
|
| | |
|
| | | } |
| | | |
| | | #endregion
|
| | | #endregion
|
| | |
|
| | | |
| | | #region ■ 按键设置(方悦)_____________________
|
| | |
|
| | | |
| | | /// <summary>
|
| | | /// 添加【按键设置】行(方悦)
|
| | | /// </summary>
|
| | |
| | | |
| | | #region ■ 简约多功能面板用___________________
|
| | | /// <summary>
|
| | | /// 添加【绑定目标】行 |
| | | /// 添加【绑定目标】行
|
| | | /// </summary>
|
| | | private void AddIBindRow(string deviceMac)
|
| | | { |
| | |
| | | } |
| | | 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; |
| | |
| | | }); |
| | | }; |
| | | }; |
| | | }
|
| | |
|
| | | } |
| | | |
| | | /// <summary> |
| | | /// 温度来源行 |
| | | /// </summary> |
| | |
| | | } |
| | | 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; |
| | |
| | | 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) =>
|
| | | {
|