Esempio n. 1
0
        public string CheckValidations()
        {
            string msg = string.Empty;

            if (string.IsNullOrEmpty(Name))
            {
                msg += AppResources.enter_name_validation + Environment.NewLine;
            }
            if (string.IsNullOrEmpty(Email))
            {
                msg += AppResources.enter_email_validation + Environment.NewLine;
            }
            if (!string.IsNullOrEmpty(Email))
            {
                if (!CommonLib.CheckValidEmail(Email))
                {
                    msg += AppResources.enter_valid_email_validation + Environment.NewLine;
                }
            }
            if (string.IsNullOrEmpty(PhoneNumber))
            {
                msg += AppResources.enter_phone_number_validation + Environment.NewLine;
            }
            return(msg);
        }
Esempio n. 2
0
        public string CheckValidations()
        {
            string msg = string.Empty;

            if (string.IsNullOrEmpty(FirstName))
            {
                msg += AppResources.enter_first_name_validation + Environment.NewLine;
            }
            if (SignupPage.userType == "2")
            {
                if (string.IsNullOrEmpty(Email))
                {
                    msg += AppResources.enter_email_validation + Environment.NewLine;
                }
                if (!string.IsNullOrEmpty(Email))
                {
                    if (!CommonLib.CheckValidEmail(Email.Trim()))
                    {
                        msg += AppResources.enter_valid_email_validation + Environment.NewLine;
                    }
                }
            }
            if (string.IsNullOrEmpty(Password))
            {
                msg += AppResources.enter_password_validation + Environment.NewLine;
            }
            if (!string.IsNullOrEmpty(Password))
            {
                if (Password != ConfirmPassword)
                {
                    msg += AppResources.password_confirm_password_mismatch_validation + Environment.NewLine;
                }
            }
            //if (string.IsNullOrEmpty(PhoneNumber))
            //{
            //    msg += AppResources.enter_phone_number_validation + Environment.NewLine;
            //}
            if (SignupPage.userType == "2")
            {
                if (string.IsNullOrEmpty(SignupPage.sellerType))
                {
                    msg += AppResources.sellerType + Environment.NewLine;
                }
            }

            //if (!string.IsNullOrEmpty(PhoneNumber) && PhoneNumber.Length < 10)
            //{
            //    msg += AppResources._phonevalidation + Environment.NewLine;
            //}

            //if (!string.IsNullOrEmpty(PhoneNumber) && PhoneNumber.Length > 10)
            //{
            //    msg += AppResources._phonevalidation + Environment.NewLine;
            //}
            if (TermsCheckBox == "checkbox_2.png")
            {
                msg += AppResources.terms_conditions_validation;
            }
            return(msg);
        }
Esempio n. 3
0
        public string CheckValidations()
        {
            string msg = string.Empty;

            if (string.IsNullOrEmpty(fNameTxt.Text))
            {
                msg += AppResources.enter_first_name + Environment.NewLine;
            }
            if (string.IsNullOrEmpty(lNameTxt.Text))
            {
                msg += AppResources.enter_last_name + Environment.NewLine;
            }

            LoggedInUser objUser = App.Database.GetLoggedInUser();

            //if (objUser.userType == "1")
            //{
            //    if (string.IsNullOrEmpty(surnameTxt.Text))
            //    {
            //        msg += AppResources.entersurname + Environment.NewLine;
            //    }
            //    if (string.IsNullOrEmpty(streetaddressTxt.Text))
            //    {
            //        msg += AppResources.enterstreetaddress + Environment.NewLine;
            //    }
            //    if (string.IsNullOrEmpty(cityTxt.Text))
            //    {
            //        msg += AppResources.enter_city + Environment.NewLine;
            //    }
            //    if (string.IsNullOrEmpty(stateTxt.Text))
            //    {
            //        msg += AppResources.enter_state + Environment.NewLine;
            //    }

            //    if (string.IsNullOrEmpty(postcodeTxt.Text))
            //    {
            //        msg += AppResources.enterpostcode + Environment.NewLine;
            //    }
            //}



            if (string.IsNullOrEmpty(emailTxt.Text))
            {
                msg += AppResources.enter_email_validation + Environment.NewLine;
            }
            if (!string.IsNullOrEmpty(emailTxt.Text))
            {
                if (!CommonLib.CheckValidEmail(emailTxt.Text))
                {
                    msg += AppResources.enter_valid_email_validation + Environment.NewLine;
                }
            }
            if (string.IsNullOrEmpty(phoneNumberTxt.Text))
            {
                msg += AppResources.enter_phone_number_validation + Environment.NewLine;
            }
            return(msg);
        }
Esempio n. 4
0
        public string CheckLoginValidations()
        {
            string msg = string.Empty;

            if (string.IsNullOrEmpty(Email))
            {
                msg += AppResources.enter_email_validation + Environment.NewLine;
            }
            if (!string.IsNullOrEmpty(Email))
            {
                if (!CommonLib.CheckValidEmail(Email))
                {
                    msg += AppResources.enter_valid_email_validation + Environment.NewLine;
                }
            }
            if (string.IsNullOrEmpty(Password))
            {
                msg += AppResources.enter_password_validation;
            }
            return(msg);
        }