From dc0309e64f02227d8e1468b7326c07955f804612 Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期三, 22 六月 2022 11:22:18 +0800
Subject: [PATCH] 修改引用路径

---
 ZigbeeApp/Shared/Phone/UserCenter/Password/ResetAccountPasswordForm.cs |  476 +++++++++++++++++++++++++++++-----------------------------
 1 files changed, 238 insertions(+), 238 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Password/ResetAccountPasswordForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Password/ResetAccountPasswordForm.cs
old mode 100755
new mode 100644
index d15698c..5585b86
--- a/ZigbeeApp/Shared/Phone/UserCenter/Password/ResetAccountPasswordForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Password/ResetAccountPasswordForm.cs
@@ -1,238 +1,238 @@
-锘縰sing System;
-using System.Collections.Generic;
-using System.Text;
-
-namespace Shared.Phone.UserCenter.Password
-{
-    /// <summary>
-    /// 閲嶇疆璐﹀彿瀵嗙爜鐨勭晫闈�
-    /// </summary>
-    public class ResetAccountPasswordForm : EditorCommonForm
-    {
-        #region 鈻� 鍙橀噺澹版槑___________________________
-
-        #endregion
-
-        #region 鈻� 鍒濆鍖朹____________________________
-
-        /// <summary>
-        /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓)
-        /// </summary>
-        public void ShowForm()
-        {
-            //璁剧疆澶撮儴淇℃伅
-            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uResetPassword));
-
-            //鍒濆鍖栦腑閮ㄤ俊鎭�
-            this.InitMiddleFrame();
-        }
-
-        /// <summary>
-        /// 鍒濆鍖栦腑閮ㄤ俊鎭�
-        /// </summary>
-        private void InitMiddleFrame()
-        {
-            //娓呯┖bodyFrame
-            this.ClearBodyFrame();
-
-            var frameRow1 = new FrameLayout();
-            frameRow1.Height = Application.GetRealHeight(23) + ControlCommonResourse.ListViewRowHeight;
-            frameRow1.BackgroundColor = UserCenterColor.Current.White;
-            bodyFrameLayout.AddChidren(frameRow1);
-
-            //璇疯緭鍏ユ柊瀵嗙爜
-            var rowNewPsw = new FrameRowControl(Application.GetRealHeight(5) / 2);
-            //鍏抽棴鐘舵�佹彁绀�
-            rowNewPsw.UseClickStatu = false;
-            rowNewPsw.Y = Application.GetRealHeight(23);
-            frameRow1.AddChidren(rowNewPsw);
-            var txtNewPsw = rowNewPsw.AddLeftInput("", 800);
-            txtNewPsw.SecureTextEntry = true;
-            txtNewPsw.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputNewPassword);
-            //搴曠嚎
-            rowNewPsw.AddBottomLine();
-            //鍥炬爣
-            var btnNewPswIcon = rowNewPsw.AddMostRightEmptyIcon(58, 58);
-            btnNewPswIcon.UnSelectedImagePath = "Item/HidenPWD.png";
-            btnNewPswIcon.SelectedImagePath = "Item/UnHidenPWD.png";
-            btnNewPswIcon.ButtonClickEvent += (sender, e) =>
-            {
-                btnNewPswIcon.IsSelected = !btnNewPswIcon.IsSelected;
-                txtNewPsw.SecureTextEntry = !txtNewPsw.SecureTextEntry;
-            };
-            //Row1鐨勯敊璇俊鎭�
-            var btnErrorRow1 = new NormalViewControl(800, 58, true);
-            btnErrorRow1.X = ControlCommonResourse.XXLeft;
-            btnErrorRow1.Y = rowNewPsw.Bottom + Application.GetRealHeight(29);
-            btnErrorRow1.TextColor = 0xfff75858;
-            frameRow1.AddChidren(btnErrorRow1);
-
-            var frameRow2 = new FrameLayout();
-            frameRow2.Y = frameRow1.Bottom;
-            frameRow2.Height = Application.GetRealHeight(150) + ControlCommonResourse.ListViewRowHeight;
-            bodyFrameLayout.AddChidren(frameRow2);
-            var frameTemp = new FrameLayout();
-            frameTemp.Height = Application.GetRealHeight(161);
-            frameTemp.BackgroundColor = UserCenterColor.Current.White;
-            frameRow2.AddChidren(frameTemp);
-            //璇烽噸澶嶈緭鍏ユ柊瀵嗙爜
-            var rowConfirmPsw = new FrameRowControl(Application.GetRealHeight(5) / 2);
-            //鍏抽棴鐘舵�佹彁绀�
-            rowConfirmPsw.UseClickStatu = false;
-            rowConfirmPsw.Y = Application.GetRealHeight(10);
-            frameTemp.AddChidren(rowConfirmPsw);
-            var txtConfirmPsw = rowConfirmPsw.AddLeftInput("", 800);
-            txtConfirmPsw.SecureTextEntry = true;
-            txtConfirmPsw.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseRepeatInputNewPassword);
-            //鍥炬爣
-            var btnConfirmPswIcon = rowConfirmPsw.AddMostRightEmptyIcon(58, 58);
-            btnConfirmPswIcon.UnSelectedImagePath = "Item/HidenPWD.png";
-            btnConfirmPswIcon.SelectedImagePath = "Item/UnHidenPWD.png";
-            btnConfirmPswIcon.ButtonClickEvent += (sender, e) =>
-            {
-                btnConfirmPswIcon.IsSelected = !btnConfirmPswIcon.IsSelected;
-                txtConfirmPsw.SecureTextEntry = !txtConfirmPsw.SecureTextEntry;
-            };
-            //Row2鐨勯敊璇俊鎭�
-            var btnErrorRow2 = new NormalViewControl(800, 58, true);
-            btnErrorRow2.X = ControlCommonResourse.XXLeft;
-            btnErrorRow2.Y = frameTemp.Bottom + Application.GetRealHeight(29);
-            btnErrorRow2.TextColor = 0xfff75858;
-            frameRow2.AddChidren(btnErrorRow2);
-
-            //閲嶇疆瀵嗙爜
-            var btnReset = new BottomClickButton(688);
-            btnReset.TextID = R.MyInternationalizationString.uResetPassword;
-            btnReset.Y = Application.GetRealHeight(706);
-            bodyFrameLayout.AddChidren(btnReset);
-            btnReset.ButtonClickEvent += (sender, e) =>
-            {
-                //瀵嗙爜妫�娴�
-                var flage = this.CheckPassword(frameRow1, frameRow2, btnErrorRow1, btnErrorRow2, txtNewPsw.Text, txtConfirmPsw.Text);
-                if (flage == false)
-                {
-                    return;
-                }
-                //閲嶇疆瀵嗙爜
-                this.ResetPassword(txtNewPsw.Text, txtConfirmPsw.Text);
-            };
-        }
-
-        #endregion
-
-        #region 鈻� 閲嶇疆瀵嗙爜___________________________
-
-        /// <summary>
-        /// 閲嶇疆瀵嗙爜
-        /// </summary>
-        /// <param name="newPsw">鏂板瘑鐮�</param>
-        /// <param name="newPsw2">浜屾纭瀵嗙爜</param>
-        private void ResetPassword(string newPsw, string newPsw2)
-        {
-            var pra = new ResetPswPra();
-            pra.Password = newPsw;
-            pra.AgainPassword = newPsw2;
-            //鏇存敼瀵嗙爜
-            bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ResetPassword", false, pra);
-            if (flage == false)
-            {
-                return;
-            }
-            //瀵嗙爜宸茬粡淇敼锛岃閲嶆柊鐧诲綍
-            string msg = Language.StringByID(R.MyInternationalizationString.uPasswordIsHadChangedAndLoginAgain);
-            this.ShowMassage(ShowMsgType.Normal, msg, () =>
-            {
-                //浠庢柊鐧诲綍
-                UserCenterLogic.ReLoginAgain(Common.Config.Instance.Account);
-            }, Language.StringByID(R.MyInternationalizationString.Login));
-        }
-
-        #endregion
-
-        #region 鈻� 涓�鑸柟娉昣__________________________
-
-        /// <summary>
-        /// 瀵嗙爜妫�娴�
-        /// </summary>
-        /// <param name="frameRow1"></param>
-        /// <param name="frameRow2"></param>
-        /// <param name="btnError1"></param>
-        /// <param name="btnError2"></param>
-        /// <param name="newPsw">杈撳叆鐨勬柊瀵嗙爜</param>
-        /// <param name="newPsw2">杈撳叆鐨勭‘璁ゅ瘑鐮�</param>
-        /// <returns></returns>
-        private bool CheckPassword(FrameLayout frameRow1,FrameLayout frameRow2,
-            NormalViewControl btnError1, NormalViewControl btnError2,
-            string newPsw, string newPsw2)
-        {
-            //杩樺師
-            frameRow1.Height = Application.GetRealHeight(23) + ControlCommonResourse.ListViewRowHeight;
-            frameRow2.Y = frameRow1.Bottom;
-            btnError2.Text = string.Empty;
-
-            if (newPsw == string.Empty)
-            {
-                //璇疯緭鍏ユ柊瀵嗙爜
-                btnError1.TextID = R.MyInternationalizationString.uPleaseInputNewPassword;
-                frameRow1.Height += Application.GetRealHeight(133);
-                frameRow2.Y = frameRow1.Bottom;
-                return false;
-            }
-            if (newPsw2 == string.Empty)
-            {
-                //璇烽噸澶嶈緭鍏ユ柊瀵嗙爜
-                btnError2.TextID = R.MyInternationalizationString.uPleaseRepeatInputNewPassword;
-                return false;
-            }
-            if (newPsw != newPsw2)
-            {
-                //纭瀵嗙爜涓嶄竴鑷达紝璇烽噸鏂拌緭鍏�
-                btnError2.TextID = R.MyInternationalizationString.SecondPswNotEqual1;
-                return false;
-            }
-            if (newPsw.Length < 6 || newPsw.Length > 13)
-            {
-                //瀵嗙爜闀垮害涓�6-13涓瓧绗�
-                string textValue = Language.StringByID(R.MyInternationalizationString.PswLengthMsg);
-                if (textValue.Contains("{0}") == true)
-                {
-                    textValue = string.Format(textValue, "6-13");
-                }
-                btnError1.Text = textValue;
-                frameRow1.Height += Application.GetRealHeight(133);
-                frameRow2.Y = frameRow1.Bottom;
-                return false;
-            }
-
-            return true;
-        }
-
-        #endregion
-
-        #region 鈻� 缁撴瀯浣揰____________________________
-
-        /// <summary>
-        /// 閲嶇疆瀵嗙爜鐨勫惎鍔ㄥ弬鏁�
-        /// </summary>
-        private class ResetPswPra
-        {
-            /// <summary>
-            /// 鐢ㄦ埛璐﹀彿
-            /// </summary>
-            public string Account = UserCenterResourse.UserInfo.Account;
-            /// <summary>
-            /// 鍥藉鍦板尯浠g爜锛屾墜鏈哄彿鍙戦�侀獙璇佺爜鏃朵娇鐢�
-            /// </summary>
-            public int AreaCode = Convert.ToInt32(UserCenterResourse.UserInfo.AreaCode);
-            /// <summary>
-            /// 鏂板瘑鐮�
-            /// </summary>
-            public string Password = string.Empty;
-            /// <summary>
-            /// 浜屾纭瀵嗙爜
-            /// </summary>
-            public string AgainPassword = string.Empty;
-        }
-        #endregion
-    }
-}
+锘縰sing System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Shared.Phone.UserCenter.Password
+{
+    /// <summary>
+    /// 閲嶇疆璐﹀彿瀵嗙爜鐨勭晫闈�
+    /// </summary>
+    public class ResetAccountPasswordForm : EditorCommonForm
+    {
+        #region 鈻� 鍙橀噺澹版槑___________________________
+
+        #endregion
+
+        #region 鈻� 鍒濆鍖朹____________________________
+
+        /// <summary>
+        /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓)
+        /// </summary>
+        public void ShowForm()
+        {
+            //璁剧疆澶撮儴淇℃伅
+            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uResetPassword));
+
+            //鍒濆鍖栦腑閮ㄤ俊鎭�
+            this.InitMiddleFrame();
+        }
+
+        /// <summary>
+        /// 鍒濆鍖栦腑閮ㄤ俊鎭�
+        /// </summary>
+        private void InitMiddleFrame()
+        {
+            //娓呯┖bodyFrame
+            this.ClearBodyFrame();
+
+            var frameRow1 = new FrameLayout();
+            frameRow1.Height = Application.GetRealHeight(23) + ControlCommonResourse.ListViewRowHeight;
+            frameRow1.BackgroundColor = UserCenterColor.Current.White;
+            bodyFrameLayout.AddChidren(frameRow1);
+
+            //璇疯緭鍏ユ柊瀵嗙爜
+            var rowNewPsw = new FrameRowControl(Application.GetRealHeight(5) / 2);
+            //鍏抽棴鐘舵�佹彁绀�
+            rowNewPsw.UseClickStatu = false;
+            rowNewPsw.Y = Application.GetRealHeight(23);
+            frameRow1.AddChidren(rowNewPsw);
+            var txtNewPsw = rowNewPsw.AddLeftInput("", 800);
+            txtNewPsw.SecureTextEntry = true;
+            txtNewPsw.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputNewPassword);
+            //搴曠嚎
+            rowNewPsw.AddBottomLine();
+            //鍥炬爣
+            var btnNewPswIcon = rowNewPsw.AddMostRightEmptyIcon(58, 58);
+            btnNewPswIcon.UnSelectedImagePath = "Item/HidenPWD.png";
+            btnNewPswIcon.SelectedImagePath = "Item/UnHidenPWD.png";
+            btnNewPswIcon.ButtonClickEvent += (sender, e) =>
+            {
+                btnNewPswIcon.IsSelected = !btnNewPswIcon.IsSelected;
+                txtNewPsw.SecureTextEntry = !txtNewPsw.SecureTextEntry;
+            };
+            //Row1鐨勯敊璇俊鎭�
+            var btnErrorRow1 = new NormalViewControl(800, 58, true);
+            btnErrorRow1.X = ControlCommonResourse.XXLeft;
+            btnErrorRow1.Y = rowNewPsw.Bottom + Application.GetRealHeight(29);
+            btnErrorRow1.TextColor = 0xfff75858;
+            frameRow1.AddChidren(btnErrorRow1);
+
+            var frameRow2 = new FrameLayout();
+            frameRow2.Y = frameRow1.Bottom;
+            frameRow2.Height = Application.GetRealHeight(150) + ControlCommonResourse.ListViewRowHeight;
+            bodyFrameLayout.AddChidren(frameRow2);
+            var frameTemp = new FrameLayout();
+            frameTemp.Height = Application.GetRealHeight(161);
+            frameTemp.BackgroundColor = UserCenterColor.Current.White;
+            frameRow2.AddChidren(frameTemp);
+            //璇烽噸澶嶈緭鍏ユ柊瀵嗙爜
+            var rowConfirmPsw = new FrameRowControl(Application.GetRealHeight(5) / 2);
+            //鍏抽棴鐘舵�佹彁绀�
+            rowConfirmPsw.UseClickStatu = false;
+            rowConfirmPsw.Y = Application.GetRealHeight(10);
+            frameTemp.AddChidren(rowConfirmPsw);
+            var txtConfirmPsw = rowConfirmPsw.AddLeftInput("", 800);
+            txtConfirmPsw.SecureTextEntry = true;
+            txtConfirmPsw.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseRepeatInputNewPassword);
+            //鍥炬爣
+            var btnConfirmPswIcon = rowConfirmPsw.AddMostRightEmptyIcon(58, 58);
+            btnConfirmPswIcon.UnSelectedImagePath = "Item/HidenPWD.png";
+            btnConfirmPswIcon.SelectedImagePath = "Item/UnHidenPWD.png";
+            btnConfirmPswIcon.ButtonClickEvent += (sender, e) =>
+            {
+                btnConfirmPswIcon.IsSelected = !btnConfirmPswIcon.IsSelected;
+                txtConfirmPsw.SecureTextEntry = !txtConfirmPsw.SecureTextEntry;
+            };
+            //Row2鐨勯敊璇俊鎭�
+            var btnErrorRow2 = new NormalViewControl(800, 58, true);
+            btnErrorRow2.X = ControlCommonResourse.XXLeft;
+            btnErrorRow2.Y = frameTemp.Bottom + Application.GetRealHeight(29);
+            btnErrorRow2.TextColor = 0xfff75858;
+            frameRow2.AddChidren(btnErrorRow2);
+
+            //閲嶇疆瀵嗙爜
+            var btnReset = new BottomClickButton(688);
+            btnReset.TextID = R.MyInternationalizationString.uResetPassword;
+            btnReset.Y = Application.GetRealHeight(706);
+            bodyFrameLayout.AddChidren(btnReset);
+            btnReset.ButtonClickEvent += (sender, e) =>
+            {
+                //瀵嗙爜妫�娴�
+                var flage = this.CheckPassword(frameRow1, frameRow2, btnErrorRow1, btnErrorRow2, txtNewPsw.Text, txtConfirmPsw.Text);
+                if (flage == false)
+                {
+                    return;
+                }
+                //閲嶇疆瀵嗙爜
+                this.ResetPassword(txtNewPsw.Text, txtConfirmPsw.Text);
+            };
+        }
+
+        #endregion
+
+        #region 鈻� 閲嶇疆瀵嗙爜___________________________
+
+        /// <summary>
+        /// 閲嶇疆瀵嗙爜
+        /// </summary>
+        /// <param name="newPsw">鏂板瘑鐮�</param>
+        /// <param name="newPsw2">浜屾纭瀵嗙爜</param>
+        private void ResetPassword(string newPsw, string newPsw2)
+        {
+            var pra = new ResetPswPra();
+            pra.Password = newPsw;
+            pra.AgainPassword = newPsw2;
+            //鏇存敼瀵嗙爜
+            bool flage = UserCenterLogic.GetResultStatuByRequestHttps("ZigbeeUsers/ResetPassword", false, pra);
+            if (flage == false)
+            {
+                return;
+            }
+            //瀵嗙爜宸茬粡淇敼锛岃閲嶆柊鐧诲綍
+            string msg = Language.StringByID(R.MyInternationalizationString.uPasswordIsHadChangedAndLoginAgain);
+            this.ShowMassage(ShowMsgType.Normal, msg, () =>
+            {
+                //浠庢柊鐧诲綍
+                UserCenterLogic.ReLoginAgain(Common.Config.Instance.Account);
+            }, Language.StringByID(R.MyInternationalizationString.Login));
+        }
+
+        #endregion
+
+        #region 鈻� 涓�鑸柟娉昣__________________________
+
+        /// <summary>
+        /// 瀵嗙爜妫�娴�
+        /// </summary>
+        /// <param name="frameRow1"></param>
+        /// <param name="frameRow2"></param>
+        /// <param name="btnError1"></param>
+        /// <param name="btnError2"></param>
+        /// <param name="newPsw">杈撳叆鐨勬柊瀵嗙爜</param>
+        /// <param name="newPsw2">杈撳叆鐨勭‘璁ゅ瘑鐮�</param>
+        /// <returns></returns>
+        private bool CheckPassword(FrameLayout frameRow1,FrameLayout frameRow2,
+            NormalViewControl btnError1, NormalViewControl btnError2,
+            string newPsw, string newPsw2)
+        {
+            //杩樺師
+            frameRow1.Height = Application.GetRealHeight(23) + ControlCommonResourse.ListViewRowHeight;
+            frameRow2.Y = frameRow1.Bottom;
+            btnError2.Text = string.Empty;
+
+            if (newPsw == string.Empty)
+            {
+                //璇疯緭鍏ユ柊瀵嗙爜
+                btnError1.TextID = R.MyInternationalizationString.uPleaseInputNewPassword;
+                frameRow1.Height += Application.GetRealHeight(133);
+                frameRow2.Y = frameRow1.Bottom;
+                return false;
+            }
+            if (newPsw2 == string.Empty)
+            {
+                //璇烽噸澶嶈緭鍏ユ柊瀵嗙爜
+                btnError2.TextID = R.MyInternationalizationString.uPleaseRepeatInputNewPassword;
+                return false;
+            }
+            if (newPsw != newPsw2)
+            {
+                //纭瀵嗙爜涓嶄竴鑷达紝璇烽噸鏂拌緭鍏�
+                btnError2.TextID = R.MyInternationalizationString.SecondPswNotEqual1;
+                return false;
+            }
+            if (newPsw.Length < 6 || newPsw.Length > 13)
+            {
+                //瀵嗙爜闀垮害涓�6-13涓瓧绗�
+                string textValue = Language.StringByID(R.MyInternationalizationString.PswLengthMsg);
+                if (textValue.Contains("{0}") == true)
+                {
+                    textValue = string.Format(textValue, "6-13");
+                }
+                btnError1.Text = textValue;
+                frameRow1.Height += Application.GetRealHeight(133);
+                frameRow2.Y = frameRow1.Bottom;
+                return false;
+            }
+
+            return true;
+        }
+
+        #endregion
+
+        #region 鈻� 缁撴瀯浣揰____________________________
+
+        /// <summary>
+        /// 閲嶇疆瀵嗙爜鐨勫惎鍔ㄥ弬鏁�
+        /// </summary>
+        private class ResetPswPra
+        {
+            /// <summary>
+            /// 鐢ㄦ埛璐﹀彿
+            /// </summary>
+            public string Account = UserCenterResourse.UserInfo.Account;
+            /// <summary>
+            /// 鍥藉鍦板尯浠g爜锛屾墜鏈哄彿鍙戦�侀獙璇佺爜鏃朵娇鐢�
+            /// </summary>
+            public int AreaCode = Convert.ToInt32(UserCenterResourse.UserInfo.AreaCode);
+            /// <summary>
+            /// 鏂板瘑鐮�
+            /// </summary>
+            public string Password = string.Empty;
+            /// <summary>
+            /// 浜屾纭瀵嗙爜
+            /// </summary>
+            public string AgainPassword = string.Empty;
+        }
+        #endregion
+    }
+}

--
Gitblit v1.8.0