JLChen
2021-01-05 f500e14c0a994487070380c50c85e0929cbc8e63
Crabtree/SmartHome/UI/SimpleControl/Phone/Register/ForgotPassword.cs
@@ -69,7 +69,7 @@
                if (bodyPageView.ChildrenCount - 2 == e) {
                    bodyPageView.RemoveAt (bodyPageView.ChildrenCount - 1);
                }
                Console.WriteLine ("D" + e.ToString ());
                Utlis.WriteLine ("D" + e.ToString ());
            };
            FrameLayout bodyView = new FrameLayout ();
@@ -139,10 +139,11 @@
        void EmailForgot (FrameLayout FrameLayoutView)
        {
            FrameLayoutView.RemoveAll ();
            var viewX = (Application.GetRealWidth (640) - Application.GetMinRealAverage (500)) / 2;
            EditText Register_Email_Address = new EditText () {
                Width = Application.GetRealWidth (500),
                Height = Application.GetRealHeight (85),
                X = Application.GetRealWidth (70),
                Width = Application.GetMinRealAverage (500),
                Height = Application.GetMinRealAverage (85),
                X = viewX,
                Y = Application.GetRealHeight (100),
                UnSelectedImagePath = "Register/Register_Email_Address.png",
                PlaceholderTextColor = SkinStyle.Current.PlaceholderTextColor,
@@ -193,10 +194,10 @@
                    try {
                        Register_Send.IsSelected = false;
                    
                        var reg = new Regex ("^\\s*([A-Za-z0-9_-]+(\\.\\w+)*@(\\w+\\.)+\\w{2,5})\\s*$");
                        var ss = reg.Match (emailAccount);
                        //var reg = new Regex ("^\\s*([A-Za-z0-9_-]+(\\.\\w+)*@(\\w+\\.)+\\w{2,5})\\s*$");
                        //var ss = reg.Match (emailAccount);
                        if (!ss.Success) {
                        if (!CommonUtlis.Current.CheckEmail (emailAccount)) {
                            Application.RunOnMainThread (() => {
                                new Alert ("", Language.StringByID (R.MyInternationalizationString.PleaseCheckEmailAddressCorrectly),
                                                         Language.StringByID (R.MyInternationalizationString.Close)).Show ();