public bool CheckNewLoginFormat(string login = null) { if (AssignFieldOnCheck && login != null) { NewLogin = login; } else { login = NewLogin; } var result = _authProvider.CheckLoginFormat(login); _newLoginFormatMessage = FormatMessages.FirstOrDefault(); if (IsChatty) { RaisePropertyChanged(nameof(IsLoginFormatOk)); } return(result); }
public bool CheckCodeFormat(string code = null) { if (AssignFieldOnCheck && code != null) { Code = code; } else { code = Code; } var result = _authProvider.CheckCodeFormat(code); // _codeFormatMessage = Array.Find<string>(FormatMessages, p => true); _codeFormatMessage = FormatMessages.FirstOrDefault(); if (IsChatty) { RaisePropertyChanged(nameof(IsCodeFormatOk)); } return(result); }
public bool CheckNewPhoneFormat(string phone = null) { if (AssignFieldOnCheck && phone != null) { NewPhone = phone; } else { phone = NewPhone; } var result = _authProvider.CheckPhoneFormat(phone); // _newPhoneFormatMessage = Array.Find<string>(FormatMessages, p => true); _newPhoneFormatMessage = FormatMessages.FirstOrDefault(); if (IsChatty) { RaisePropertyChanged(nameof(IsPhoneFormatOk)); } return(result); }
public bool CheckNewEmailFormat(string email = null) { if (AssignFieldOnCheck && email != null) { NewEmail = email; } else { email = NewEmail; } var result = _authProvider.CheckEmailFormat(email); // _newEmailFormatMessage = Array.Find<string>(FormatMessages, p => true); _newEmailFormatMessage = FormatMessages.FirstOrDefault(); if (IsChatty) { RaisePropertyChanged(nameof(IsEmailFormatOk)); } return(result); }
public bool CheckPasswordFormat(string password = null) { if (AssignFieldOnCheck && password != null) { Password = password; } else { password = Password; } var result = _authProvider.CheckPasswordFormat(password); //_passwordFormatMessage = Array.Find<string>(FormatMessages, p => true); _passwordFormatMessage = FormatMessages.FirstOrDefault(); if (IsChatty) { RaisePropertyChanged(nameof(IsPasswordFormatOk)); } return(result); }