From 6fa9d69da922c8049f5acfcbb9ce9fd26811024c Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期四, 16 四月 2020 17:10:57 +0800
Subject: [PATCH] 请合并代码

---
 ZigbeeApp/Shared/Phone/Login/AccountResetPWDSuccess.cs |  105 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 105 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Login/AccountResetPWDSuccess.cs b/ZigbeeApp/Shared/Phone/Login/AccountResetPWDSuccess.cs
new file mode 100755
index 0000000..a8d0d6b
--- /dev/null
+++ b/ZigbeeApp/Shared/Phone/Login/AccountResetPWDSuccess.cs
@@ -0,0 +1,105 @@
+锘縰sing System;
+using Shared.Common;
+
+namespace Shared.Phone.Login
+{
+    public class AccountResetPWDSuccess : FrameLayout
+    {
+        public AccountResetPWDSuccess()
+        {
+            Tag = "Forgot";
+        }
+        /// <summary>
+        /// Show
+        /// </summary>
+        public void Show()
+        {
+            var dialog = new FrameLayout()
+            {
+                BackgroundColor = ZigbeeColor.Current.GXCDailogBackGroundColor
+            };
+            AddChidren(dialog);
+
+            var blackBG = new FrameLayout()
+            {
+                Y = Application.GetRealHeight(576),
+                Width = Application.GetRealWidth(827),
+                Height = Application.GetRealHeight(904),
+                Gravity = Gravity.CenterHorizontal,
+                BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor,
+                Radius=(uint)Application.GetRealHeight(20)
+            };
+            AddChidren(blackBG);
+
+            var sucBtn = new Button()
+            {
+                Y = Application.GetRealHeight(657),
+                Width = Application.GetMinReal(346),
+                Height = Application.GetMinReal(346),
+                Gravity = Gravity.CenterHorizontal,
+                UnSelectedImagePath = "Account/ChangeSuccess.png"
+            };
+            AddChidren(sucBtn);
+
+            var tipBtn = new Button()
+            {
+                Y = sucBtn.Bottom+Application.GetRealHeight(35),
+                Width = Application.GetRealWidth(500),
+                Height = Application.GetRealHeight(80),
+                Gravity = Gravity.CenterHorizontal,
+                TextID = R.MyInternationalizationString.ResetSuccess,
+                TextColor = ZigbeeColor.Current.GXCTextBlackColor,
+                TextSize = 16
+            };
+            AddChidren(tipBtn);
+
+            var tip = new Button()
+            {
+                Y = tipBtn.Bottom+ Application.GetRealHeight(15),
+                Width = Application.GetRealWidth(700),
+                Height = Application.GetRealHeight(80),
+                Gravity = Gravity.CenterHorizontal,
+                TextID = R.MyInternationalizationString.ResetScucessPleaseLogin,
+                TextColor = ZigbeeColor.Current.GXCTextGrayColor,
+                TextSize = 14,
+            };
+            AddChidren(tip);
+
+            var loginBtn = new Button()
+            {
+                Y = Application.GetRealHeight(1284),
+                Width = Application.GetRealWidth(688),
+                Height = Application.GetRealHeight(127),
+                Gravity = Gravity.CenterHorizontal,
+                TextID = R.MyInternationalizationString.Login,
+                TextSize = 15,
+                TextColor = ZigbeeColor.Current.GXCTextGrayColor,
+                SelectedTextColor = ZigbeeColor.Current.GXCTextWhiteColor,
+                SelectedBackgroundColor = ZigbeeColor.Current.GXCButtonBlackSelectedColor,
+                BackgroundColor = ZigbeeColor.Current.GXCButtonUnSelectedColor,
+                Radius = (uint)Application.GetRealHeight(127 / 2),
+                IsSelected = true
+            };
+            AddChidren(loginBtn);
+
+            loginBtn.MouseUpEventHandler += (sender, e) =>
+            {
+                try
+                {
+                    CommonPage.Instance.RemoveViewByTag("Forgot");
+                    CommonPage.Instance.RemoveViewByTag("Login");
+                }
+                catch
+                {
+
+                }
+                finally
+                {
+                    var login = new AccountLogin();
+                    CommonPage.Instance.AddChidren(login);
+                    login.Show();
+                }
+            };
+        }
+    }
+}

--
Gitblit v1.8.0