| | |
| | | }; |
| | | bodyFrameLayout.AddChidren(verticalScrolView); |
| | | |
| | | var confirm = new Device.CommonForm.CompleteButton(1700, 700, 127); |
| | | var confirm = new Device.CommonForm.CompleteButton(1700, 900, 127); |
| | | confirm.SetTitle(R.MyInternationalizationString.Save); |
| | | AddChidren(confirm); |
| | | confirm.MouseUpEventHandler += (sender, e) => |
| | |
| | | verticalScrolView.AddChidren(devRow); |
| | | devRow.Init(); |
| | | devRow.SetIcon(device.IconPath); |
| | | devRow.SetName(device.DeviceName); |
| | | devRow.SetZone(room.FloorName + ", " + room.Name); |
| | | devRow.SetName(Common.LocalDevice.Current.GetDeviceEpointName(device)); |
| | | devRow.SetZone(Common.Room.CurrentRoom.GetRoomNameByDevice(device)); |
| | | |
| | | if (tempDevice != null && tempDevice == device) |
| | | { |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// AddItem |
| | | /// 湿度传感器列表 |
| | | /// </summary> |
| | | /// <param name="vertical"></param> |
| | | public void AddItem(VerticalScrolViewLayout vertical, int y) |
| | | private List<ZigBee.Device.CommonDevice> GetHumidityDevice() |
| | | { |
| | | var dev = new DeviceInfoWithZoneRow(y); |
| | | vertical.AddChidren(dev); |
| | | dev.Init(); |
| | | dev.SetIcon("DeviceIcon/1.png"); |
| | | dev.SetName("湿度传感器" + y); |
| | | dev.SetZone(room.FloorName + ", " + room.Name); |
| | | } |
| | | |
| | | /// <summary>
|
| | | /// 湿度传感器列表
|
| | | /// </summary>
|
| | | private List<ZigBee.Device.CommonDevice> GetHumidityDevice()
|
| | | {
|
| | | var listDevice = new List<ZigBee.Device.CommonDevice>();
|
| | | foreach (var device in Common.LocalDevice.Current.listAllDevice)
|
| | | {
|
| | | //获取湿度传感器
|
| | | if (device is ZigBee.Device.TemperatureSensor && ((ZigBee.Device.TemperatureSensor)device).SensorDiv == 2)
|
| | | {
|
| | | listDevice.Add(device);
|
| | | }
|
| | | }
|
| | | return listDevice;
|
| | | var listDevice = new List<ZigBee.Device.CommonDevice>(); |
| | | foreach (var device in Common.LocalDevice.Current.listAllDevice) |
| | | { |
| | | //获取湿度传感器 |
| | | if (device is ZigBee.Device.TemperatureSensor && ((ZigBee.Device.TemperatureSensor)device).SensorDiv == 2) |
| | | { |
| | | listDevice.Add(device); |
| | | } |
| | | } |
| | | return listDevice; |
| | | } |
| | | #endregion |
| | | } |