| | |
| | | HdlGatewayReceiveLogic.Current.RemoveEvent("TemperatrueDevice");
|
| | | HdlGatewayReceiveLogic.Current.RemoveEvent("HumidityDevice");
|
| | |
|
| | | CommonPage.Instance.IsDrawerLockMode = false; |
| | | base.RemoveFromParent();
|
| | | } |
| | | |
| | |
| | | }; |
| | | AddChidren(bodyFrameLayout); |
| | | |
| | | var imgFL = new Button |
| | | { |
| | | Y = Application.GetRealHeight(60), |
| | | Width = Application.GetMinRealAverage(916), |
| | | Height = Application.GetMinRealAverage(487), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | UnSelectedImagePath = "Room/Room_Rectangle.png" |
| | | }; |
| | | bodyFrameLayout.AddChidren(imgFL); |
| | | |
| | | backGround = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(60), |
| | |
| | | UnSelectedImagePath = room.BackgroundImage |
| | | }; |
| | | bodyFrameLayout.AddChidren(backGround); |
| | | backGround.SetViewShadow(true); |
| | | backGround.MouseUpEventHandler += backGroundIMGHander; |
| | | |
| | | var infoFL = new FrameLayout |
| | |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor |
| | | }; |
| | | bodyFrameLayout.AddChidren(infoFL); |
| | | var rectCornerID = HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight; |
| | | infoFL.SetCornerWithSameRadius(Application.GetRealHeight(50), rectCornerID); |
| | | |
| | | var infoEdit = new Button |
| | | { |
| | |
| | | var temperatureRow = new DeviceInfoRow(446); |
| | | temperatureRow.Init(); |
| | | temperatureRow.SetTipTitle(R.MyInternationalizationString.Temperature); |
| | | temperatureRow.SetTitle("26.8℃"); |
| | | temperatureRow.NameText.TextAlignment = TextAlignment.CenterRight; |
| | | infoFL.AddChidren(temperatureRow); |
| | | temperatureRow.ClickBtn.MouseUpEventHandler += (sender, e) => |
| | |
| | | var humidityRow = new DeviceInfoRow(585); |
| | | humidityRow.Init(); |
| | | humidityRow.SetTipTitle(R.MyInternationalizationString.Humidity); |
| | | humidityRow.SetTitle("66.5%"); |
| | | humidityRow.NameText.TextAlignment = TextAlignment.CenterRight; |
| | | infoFL.AddChidren(humidityRow); |
| | | humidityRow.ClickBtn.MouseUpEventHandler += (sender, e) => |
| | |
| | | var tem = new RoomHumiditySetting { }; |
| | | HomePage.Instance.AddChidren(tem); |
| | | HomePage.Instance.PageIndex += 1; |
| | | tem.tempDevice = Common.LocalDevice.Current.GetDevice(room.HumidityDevice); |
| | | tem.Show(room); |
| | | tem.selectDeviceAction = (selectTemp) => |
| | | { |
| | |
| | | localPic.action = (imgPath) => |
| | | { |
| | | IconPathType = 0; |
| | | backGround.ImageBytes = null; |
| | | backGround.UnSelectedImagePath = imgPath; |
| | | }; |
| | | }; |