| | |
| | | btnRoom.Text = Common.Room.CurrentRoom.GetRoomNameByDevice(device);
|
| | | frameTable.AddChidren(btnRoom, ChidrenBindMode.BindEventOnly);
|
| | | //摄氏度
|
| | | var btnValue = new NormalViewControl(150, 60, true);
|
| | | var btnValue = new NormalViewControl(300, 60, true);
|
| | | btnValue.Y = Application.GetRealHeight(58);
|
| | | btnValue.X = frameTable.Width - Application.GetRealWidth(150 + 58);
|
| | | btnValue.X = frameTable.Width - Application.GetRealWidth(300 + 58);
|
| | | btnValue.TextAlignment = TextAlignment.CenterRight;
|
| | | btnValue.TextID = R.MyInternationalizationString.uGetting;
|
| | | frameTable.AddChidren(btnValue, ChidrenBindMode.BindEventOnly);
|
| | | rowInfo.btnValue = btnValue;
|
| | | //警告图标
|
| | |
| | | if (i != 0 && i % 5 == 0)
|
| | | {
|
| | | //读取5个后,间隔一段时间
|
| | | System.Threading.Thread.Sleep(500);
|
| | | System.Threading.Thread.Sleep(200);
|
| | | if (this.Parent == null)
|
| | | {
|
| | | return;
|
| | |
| | | ((AC)listDevice[i]).ReadLocalTemperature();
|
| | | //获取开关状态(处于某种工作状态,即为打开状态)
|
| | | ((AC)listDevice[i]).ReadSystemMode();
|
| | | //清洗滤网
|
| | | listDevice[i].ReadAttri(Cluster_ID.Thermostat, AttriButeId.FilterCleaningStatus);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | /// </summary>
|
| | | private void StartReceiveDataEvent()
|
| | | {
|
| | | HdlDeviceAttributeLogic.Current.AddAttributeEvent("IndoorUnitListFormEvent", "DeviceStatusReport", (device) =>
|
| | | HdlGatewayReceiveLogic.Current.AddAttributeEvent("IndoorUnitListFormEvent", ReceiveComandDiv.A设备属性上报, (device) =>
|
| | | {
|
| | | string mainkeys = Common.LocalDevice.Current.GetDeviceMainKeys(device);
|
| | | if (dicControl.ContainsKey(mainkeys) == false || device.DeviceStatusReport.CluterID != 513)
|
| | |
| | | rowInfo.btnIconBack.BackgroundColor = 0xfffef1ed;
|
| | | }
|
| | | }
|
| | | else if (data.AttributeId == 4097)
|
| | | {
|
| | | //42:需要清洗滤网
|
| | | if (data.AttriButeData == 42)
|
| | | {
|
| | | rowInfo.btnWarningIcon.Visible = true;
|
| | | //请注意清洗滤网哦
|
| | | rowInfo.btnWarningMsg.TextID = R.MyInternationalizationString.uPleaseClreanACfilter;
|
| | | }
|
| | | }
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | /// <summary>
|
| | | /// 界面关闭
|
| | | /// </summary>
|
| | | public override void CloseForm()
|
| | | public override void CloseFormBefore()
|
| | | {
|
| | | HdlDeviceAttributeLogic.Current.RemoveEvent("IndoorUnitListFormEvent");
|
| | | HdlGatewayReceiveLogic.Current.RemoveEvent("IndoorUnitListFormEvent");
|
| | |
|
| | | base.CloseForm();
|
| | | base.CloseFormBefore();
|
| | | }
|
| | |
|
| | | #endregion
|