From 9c16d3614d9b88c637f967518a329f239fcd3aaf Mon Sep 17 00:00:00 2001 From: lss <316519258@qq.com> Date: 星期五, 12 六月 2020 09:22:04 +0800 Subject: [PATCH] 2020.06.12 --- ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/SensorWaterDirectionForm.cs | 46 ++++++---------------------------------------- 1 files changed, 6 insertions(+), 40 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/SensorWaterDirectionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/SensorWaterDirectionForm.cs index 41f3bd3..4f8a917 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/SensorWaterDirectionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/SensorWaterDirectionForm.cs @@ -7,7 +7,7 @@ /// <summary> /// 姘存蹈浼犳劅鍣ㄧ殑娣诲姞姝ラ鐣岄潰 /// </summary> - public class SensorWaterDirectionForm : EditorCommonForm + public class SensorWaterDirectionForm : DirectionCommonForm { #region 鈻� 鍒濆鍖朹____________________________ @@ -28,13 +28,10 @@ /// </summary> private void InitMiddleFrame() { - //娓呯┖bodyFrame - this.ClearBodyFrame(); - //鍥剧墖 var framePic = new FrameLayout(); - framePic.Width = Application.GetMinRealAverage(861); - framePic.Height = Application.GetMinRealAverage(706); + framePic.Width = this.GetPictrueRealSize(861); + framePic.Height = this.GetPictrueRealSize(706); framePic.Gravity = Gravity.CenterHorizontal; framePic.Y = Application.GetRealHeight(135); bodyFrameLayout.AddChidren(framePic); @@ -43,9 +40,9 @@ framePic.AddChidren(btnPic); //缁胯壊鎸囩ず鐏揩閫熼棯鐑� - var btnGreanLinght = new NormalViewControl(Application.GetMinRealAverage(501), Application.GetMinRealAverage(45), false); - btnGreanLinght.X = Application.GetMinRealAverage(369); - btnGreanLinght.Y = Application.GetMinRealAverage(358); + var btnGreanLinght = new NormalViewControl(this.GetPictrueRealSize(501), this.GetPictrueRealSize(45), false); + btnGreanLinght.X = this.GetPictrueRealSize(369); + btnGreanLinght.Y = this.GetPictrueRealSize(358); btnGreanLinght.TextAlignment = TextAlignment.Center; btnGreanLinght.TextColor = UserCenterColor.Current.TextGrayColor3; btnGreanLinght.TextSize = 10; @@ -71,37 +68,6 @@ msg2.TextColor = UserCenterColor.Current.TextGrayColor3; msg2.TextAlignment = TextAlignment.Center; bodyFrameLayout.AddChidren(msg2); - - //鏌ョ湅甯姪 - var btnHelp = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(50), false); - btnHelp.Y = Application.GetRealHeight(1388); - btnHelp.TextSize = 12; - btnHelp.TextAlignment = TextAlignment.Center; - btnHelp.TextColor = UserCenterColor.Current.TextOrangeColor; - btnHelp.Text = Language.StringByID(R.MyInternationalizationString.uSearchHelp); - btnHelp.ButtonClickEvent += (sender, e) => - { - var form = new DeviceDirectionHelpForm(); - form.AddForm(string.Empty); - }; - bodyFrameLayout.AddChidren(btnHelp); - //搴曠嚎 - int lineWidth = btnHelp.GetRealWidthByText(12); - var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false); - btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor; - btnLine.Gravity = Gravity.CenterHorizontal; - btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8); - bodyFrameLayout.AddChidren(btnLine); - - //涓嬩竴姝� - var btnNext = new BottomClickButton(); - btnNext.TextID = R.MyInternationalizationString.uNextway; - bodyFrameLayout.AddChidren(btnNext); - btnNext.ButtonClickEvent += (sender, e) => - { - var form = new Device.DeviceSearchForm(); - form.AddForm(this.FormID); - }; } #endregion -- Gitblit v1.8.0