gxc
2020-02-28 66a9965c44ecc32a6696abca876ab9d1cd091584
ZigbeeApp/Shared/Phone/Device/Room/RoomHumiditySetting.cs
old mode 100755 new mode 100644
@@ -91,7 +91,7 @@
            };
            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) =>
@@ -107,13 +107,24 @@
            for (int i = 0; i < deviceList.Count; i++)
            {
                var fl = new FrameLayout
                {
                    Height = Application.GetRealHeight(127 + 20),
                    BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor
                };
                verticalScrolView.AddChidren(fl);
                var device = deviceList[i];
                var devRow = new DeviceInfoWithZoneRow(20 + i * (127 + 20));
                verticalScrolView.AddChidren(devRow);
                var devRow = new DeviceInfoWithZoneRow(20);
                fl.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 (i == deviceList.Count - 1)
                {
                    devRow.HideLine(true);
                }
                if (tempDevice != null && tempDevice == device)
                {
@@ -140,20 +151,6 @@
                };
            }
        }
        /// <summary>
        /// AddItem
        /// </summary>
        /// <param name="vertical"></param>
        public void AddItem(VerticalScrolViewLayout vertical, int y)
        {
            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>