From 34e965100d635346e2d4cd6e6013bdaed66b3004 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期四, 02 一月 2020 19:52:13 +0800 Subject: [PATCH] 2019.1.2-3 --- ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs index b992f88..1837878 100644 --- a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs +++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs @@ -118,7 +118,7 @@ Height = Application.GetMinRealAverage(207), Gravity = Gravity.CenterHorizontal, BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor, - Radius = (uint)Application.GetMinRealAverage(207) + Radius = (uint)Application.GetMinRealAverage(207/2) }; bodyFrameLayout.AddChidren(deviceBG); @@ -129,7 +129,7 @@ Height = Application.GetMinRealAverage(184), Gravity = Gravity.CenterHorizontal, BackgroundColor = ZigbeeColor.Current.GXCSelectedBackgroundColor, - Radius = (uint)Application.GetMinRealAverage(184) + Radius = (uint)Application.GetMinRealAverage(184/2) }; bodyFrameLayout.AddChidren(deviceBG2); @@ -143,14 +143,17 @@ }; bodyFrameLayout.AddChidren(deviceIMG); + var info = Common.LocalDevice.Current.GetNotHdlMyDeviceEnumInfo(new List<CommonDevice> { device.CommonDevice }); + var deviceTypeName = new Button() { Y = Application.GetRealHeight(360), Width = Application.GetRealWidth(900), Height = Application.GetRealHeight(80), TextColor = ZigbeeColor.Current.GXCTextBlackColor, - Text = DeviceUI.GetDeviceTypeName(device.CommonDevice.Type), - Gravity = Gravity.CenterHorizontal + TextID = info.BeloneTextId, + Gravity = Gravity.CenterHorizontal, + TextSize = 15 }; bodyFrameLayout.AddChidren(deviceTypeName); @@ -318,7 +321,7 @@ { curRoom = rooms[index1][index2]; zoneRow.SetTitle($"{Config.Instance.Home.GetFloorNameById(floorIds[index1])} , {rooms[index1][index2].Name}"); - }, 0, 0, Language.StringByID(R.MyInternationalizationString.BelongFloor), + }, 0, 0, Language.StringByID(R.MyInternationalizationString.BelongZone), Language.StringByID(R.MyInternationalizationString.Confrim), Language.StringByID(R.MyInternationalizationString.Cancel)); } @@ -338,7 +341,7 @@ { curRoom = rs[index1]; zoneRow.SetTitle(rs[index1].Name); - }, 0,Language.StringByID(R.MyInternationalizationString.BelongFloor), + }, 0,Language.StringByID(R.MyInternationalizationString.BelongZone), Language.StringByID(R.MyInternationalizationString.Confrim), Language.StringByID(R.MyInternationalizationString.Cancel)); } @@ -407,15 +410,15 @@ CommonPage.Loading.Hide(); if (result) { - var alertSuccess = new Alert(Language.StringByID(R.MyInternationalizationString.TIP), Language.StringByID(R.MyInternationalizationString.Success), Language.StringByID(R.MyInternationalizationString.Confrim)); - alertSuccess.Show(); - alertSuccess.ResultEventHandler += (senderSuccess, eSuccess) => - { + //var alertSuccess = new Alert(Language.StringByID(R.MyInternationalizationString.TIP), Language.StringByID(R.MyInternationalizationString.Success), Language.StringByID(R.MyInternationalizationString.Confrim)); + //alertSuccess.Show(); + //alertSuccess.ResultEventHandler += (senderSuccess, eSuccess) => + //{ //鏀规埧闂� Shared.Common.Room.CurrentRoom.ChangedRoom(device.CommonDevice, curRoom.Id); device.CommonDevice.ReSave(); RemoveFromParent(); - }; + //}; } else { -- Gitblit v1.8.0