| | |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | var middle = new VerticalScrolViewLayout |
| | | { |
| | |
| | | { |
| | | Y = Application.GetRealHeight(20), |
| | | Height = Application.GetRealHeight(50), |
| | | Width = Application.GetRealWidth(450), |
| | | Width = Application.GetRealWidth(400), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = deviceinof.DeviceEpointName, |
| | | TextColor = ZigbeeColor.Current.LogicTextBlackColor, |
| | |
| | | var btnregionname = new Button |
| | | { |
| | | Y = btndevicename.Bottom + Application.GetRealHeight(10), |
| | | Width = Application.GetRealWidth(450), |
| | | Width = Application.GetRealWidth(400), |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Height = Application.GetRealHeight(50), |
| | | Text = "",//Language.StringByID(MyInternationalizationString.customroom), |
| | |
| | | ///显示设备条件状态控件 |
| | | var devicestatus = new Button |
| | | { |
| | | Width = Application.GetRealWidth(350), |
| | | Width = Application.GetRealWidth(400), |
| | | Height = Application.GetRealHeight(130), |
| | | Gravity = Gravity.CenterVertical, |
| | | TextAlignment = TextAlignment.CenterRight, |
| | | X = Application.GetRealWidth(450), |
| | | X = Application.GetRealWidth(400), |
| | | TextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | TextSize = 14, |
| | | }; |
| | |
| | | // devicestatus.Text = Language.StringByID(MyInternationalizationString.close); |
| | | |
| | | ifclose = false; |
| | | //如果空调状态是关;直接跳出for循坏; |
| | | break; |
| | | } |
| | | else if (status["Data1"].ToString() == "1") |
| | | { |
| | |
| | | //4---设置加热度数;5---设置制冷、除湿度数;7---设置自动度数 |
| | | else if (status["Data1"] == "4" || status["Data1"] == "5" || status["Data1"] == "7") |
| | | { |
| | | var s = int.Parse(status["Data2"]) /100; |
| | | var s = int.Parse(status["Data2"]) / 100; |
| | | temperaturetext = s.ToString(); |
| | | } |
| | | else if (status["Data1"] == "20") |
| | |
| | | flMain.RemoveFromParent(); |
| | | }; |
| | | |
| | | var timetypeframelayout1 = new FrameLayout |
| | | { |
| | | Width = Application.GetRealWidth(1080), |
| | | Height = Application.GetRealHeight(100), |
| | | Y = Application.GetRealHeight(1920 - 100), |
| | | BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, |
| | | }; |
| | | flMain.AddChidren(timetypeframelayout1); |
| | | |
| | | var framelayout = new FrameLayout |
| | | { |
| | | Width = Application.GetRealWidth(1080), |
| | |
| | | Radius = (uint)Application.GetRealHeight(60), |
| | | }; |
| | | flMain.AddChidren(framelayout); |
| | | framelayout.SetCornerWithSameRadius(20,HDLUtils.RectCornerTopLeft|HDLUtils.RectCornerTopRight); |
| | | |
| | | #region -------取消 完成 |
| | | var timetype = new RowLayout |