From 48ba446936b51fffafa7c3600c0dadc6ac0e8c20 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 10 七月 2020 10:52:13 +0800
Subject: [PATCH] 2020-07-10-01

---
 ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessUdpDirectionForm.cs |   39 +++++++++++++++++++--------------------
 1 files changed, 19 insertions(+), 20 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessUdpDirectionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessUdpDirectionForm.cs
index 9cbc6b4..90d4b15 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessUdpDirectionForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessUdpDirectionForm.cs
@@ -33,31 +33,30 @@
 
             //鍥剧墖
             var framePic = new FrameLayout();
-            framePic.Width = Application.GetMinRealAverage(852);
-            framePic.Height = Application.GetMinRealAverage(478);
+            framePic.Width = this.GetPictrueRealSize(852);
+            framePic.Height = this.GetPictrueRealSize(478);
             framePic.Gravity = Gravity.CenterHorizontal;
             framePic.Y = Application.GetRealHeight(251);
             framePic.BackgroundImagePath = "Gateway/WirelessGatewaySearching.png";
             bodyFrameLayout.AddChidren(framePic);
 
-            //璺宠浆鍒扮Щ鍔ㄨ澶�
-            var btnMsg1 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false);
-            btnMsg1.Y = framePic.Bottom + Application.GetRealHeight(248);
-            btnMsg1.TextID = R.MyInternationalizationString.uJumpToMobileDevice;
-            btnMsg1.TextAlignment = TextAlignment.Center;
-            btnMsg1.TextColor = UserCenterColor.Current.TextGrayColor3;
-            bodyFrameLayout.AddChidren(btnMsg1);
-            //WLAN璁剧疆杩炴帴瀹跺涵WiFi
-            var btnMsg2 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false);
-            btnMsg2.Y = btnMsg1.Bottom;
-            btnMsg2.TextID = R.MyInternationalizationString.uWlanConnectHomeWifi;
-            btnMsg2.TextAlignment = TextAlignment.Center;
-            btnMsg2.TextColor = UserCenterColor.Current.TextGrayColor3;
-            bodyFrameLayout.AddChidren(btnMsg2);
+            //璇峰厛鍘昏缃墜鏈鸿繛鎺ュ埌璺敱鍣▄0}鐒跺悗闀挎寜缃戝叧HID/WCFG鎸夐敭澶ф20绉抺0}鐩村埌绯荤粺鎸囩ず鐏揩闂獅0}缃戝叧杩涘叆UDP妯″紡WIFI閰嶇綉
+            string[] strMsg = Language.StringByID(R.MyInternationalizationString.uAddUdpWirelessGatewayMsg2).Split(new string[] { "{0}" }, StringSplitOptions.RemoveEmptyEntries);
+            int YY = framePic.Bottom + Application.GetRealHeight(128);
+            for (int i = 0; i < strMsg.Length; i++)
+            {
+                var btnMsg1 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false);
+                btnMsg1.Y = YY;
+                btnMsg1.Text = strMsg[i];
+                btnMsg1.TextAlignment = TextAlignment.Center;
+                btnMsg1.TextColor = UserCenterColor.Current.TextGrayColor3;
+                bodyFrameLayout.AddChidren(btnMsg1);
+                YY = btnMsg1.Bottom;
+            }
 
             //鍘昏缃�
             var btnSettion = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(50), false);
-            btnSettion.Y = btnMsg2.Bottom + Application.GetRealHeight(12);
+            btnSettion.Y = YY + Application.GetRealHeight(12);
             btnSettion.TextSize = 12;
             btnSettion.TextAlignment = TextAlignment.Center;
             btnSettion.TextColor = 0xff0075ff;
@@ -68,7 +67,7 @@
             };
             bodyFrameLayout.AddChidren(btnSettion);
             //搴曠嚎
-            int lineWidth = btnSettion.GetRealWidthByText(12);
+            int lineWidth = btnSettion.GetRealWidthByText();
             var btnLine1 = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
             btnLine1.BackgroundColor = 0xff0075ff;
             btnLine1.Gravity = Gravity.CenterHorizontal;
@@ -79,8 +78,8 @@
             var btnHelp = this.AddHelpControl();
             btnHelp.ButtonClickEvent += (sender, e) =>
             {
-                var form = new DeviceDirection.DeviceDirectionHelpForm();
-                form.AddForm("WirelessUdp");
+                var form = new AddGatewayHelpForm();
+                form.AddForm("Udp");
             };
 
             //涓嬩竴姝�

--
Gitblit v1.8.0