From 5727cf0b9b54da0a191dd1e23cb5abf21320fbff Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 25 十一月 2019 10:34:17 +0800
Subject: [PATCH] IOS使用新的项目名称

---
 ZigbeeApp/Shared/Phone/Device/Account/PhoneEmailForm.cs |   52 +++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 37 insertions(+), 15 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Account/PhoneEmailForm.cs b/ZigbeeApp/Shared/Phone/Device/Account/PhoneEmailForm.cs
index 07a7ced..194a6bb 100755
--- a/ZigbeeApp/Shared/Phone/Device/Account/PhoneEmailForm.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Account/PhoneEmailForm.cs
@@ -2,6 +2,7 @@
 using System.Timers;
 using Shared.Common;
 using Shared.Phone.Device.CommonForm;
+using Shared.Phone.UserCenter;
 
 namespace Shared.Phone.Device.Account
 {
@@ -34,17 +35,28 @@
             PhoneEmailFL = new FrameLayout()
             {
                 Y = Application.GetRealHeight(y),
-                Height = Application.GetRealHeight(height),
-                Width = Application.GetRealWidth(width),
-                BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor,
-                Radius = (uint)Application.GetRealHeight(height / 2),
+                Width = Application.GetMinRealAverage(905),
+                Height = Application.GetMinRealAverage(170),
+                //BackgroundColor = ZigbeeColor.Current.GXCGrayLineColor,
+                //Radius = (uint)Application.GetRealHeight(height / 2),
                 Gravity = Gravity.CenterHorizontal
             };
             frameLayout.AddChidren(PhoneEmailFL);
 
+            var bg = new Button
+            {
+                Width = Application.GetMinRealAverage(905),
+                Height = Application.GetMinRealAverage(170),
+                UnSelectedImagePath = "Account/PhoneEmail_White.png",
+                Gravity = Gravity.CenterHorizontal
+            };
+            PhoneEmailFL.AddChidren(bg);
+
             SelectedPhone = new Button()
             {
-                Width = Application.GetRealWidth(width / 2 + 20),
+                X=Application.GetRealWidth(10),
+                Width = Application.GetMinRealAverage(905 / 2 + 20),
+                Height=Application.GetMinRealAverage(height),
                 SelectedBackgroundColor = ZigbeeColor.Current.GXCButtonSelectedColor,
                 TextID = R.MyInternationalizationString.PhoneNum,
                 TextColor = ZigbeeColor.Current.GXCTextColor,
@@ -57,8 +69,9 @@
 
             SelectedEmail = new Button()
             {
-                X = Application.GetRealWidth(width / 2 - 20),
-                Width = Application.GetRealWidth(width / 2 + 20),
+                X = Application.GetMinRealAverage(905 / 2 - 20),
+                Width = Application.GetMinRealAverage(905 / 2 + 20),
+                Height = Application.GetMinRealAverage(height),
                 SelectedBackgroundColor = ZigbeeColor.Current.GXCButtonSelectedColor,
                 TextID = R.MyInternationalizationString.Email,
                 TextColor = ZigbeeColor.Current.GXCTextColor,
@@ -129,14 +142,23 @@
             accountFL.AddChidren(PhoneZoneBtn);
             PhoneZoneBtn.MouseUpEventHandler += (sender, e) =>
             {
-                var zoneListView = new PhoneZone { };
-                zoneListView.ActionSelectedZone += (zone) =>
+                var form = new AreaCodeSelectForm();
+                parFL.AddChidren(form);
+                form.InitForm();
+                form.ShowForm();
+                form.FinishSelectEvent += (code) =>
                 {
-                    var t = CommonPage.PhoneZoneStr;
-                    (sender as Button).Text = "+" + zone;
+                    (sender as Button).Text = "+" + code;
                 };
-                parFL.AddChidren(zoneListView);
-                zoneListView.Show();
+
+                //var zoneListView = new PhoneZone { };
+                //zoneListView.ActionSelectedZone += (zone) =>
+                //{
+                //    var t = CommonPage.PhoneZoneStr;
+                //    (sender as Button).Text = "+" + zone;
+                //};
+                //parFL.AddChidren(zoneListView);
+                //zoneListView.Show();
             };
 
             AccountET = new EditText()
@@ -879,7 +901,7 @@
                 SelectedBackgroundColor=ZigbeeColor.Current.GXCButtonSelectedColor,
                 Enable = false,
                 IsSelected = false,
-                Radius=(uint)Application.GetRealHeight(20)
+                Radius=(uint)Application.GetRealHeight(12)
             };
             codeFL.AddChidren(SendCodeBtn);
 
@@ -1027,7 +1049,7 @@
                 SelectedBackgroundColor = ZigbeeColor.Current.GXCButtonSelectedColor,
                 Enable = false,
                 IsSelected = false,
-                Radius = (uint)Application.GetRealHeight(20)
+                Radius = (uint)Application.GetRealHeight(12)
             };
             codeFL.AddChidren(SendCodeBtn);
 

--
Gitblit v1.8.0