private bool isValidLogin() { if (userName.Text.Length == 0 || userName.Text.Length < 6) { userName.SetError(GetString(Resource.String.edtLength), null); userName.RefreshDrawableState(); return(false); } if (email.Text.Length == 0) { email.SetError(GetString(Resource.String.emailErro), null); email.RefreshDrawableState(); return(false); } if (LegionUtils.isValidEmail(email.Text) == false) { email.SetError(GetString(Resource.String.emailErro), null); email.RefreshDrawableState(); return(false); } if (password.Text.Length == 0 || password.Text.Length < 6) { password.SetError(GetString(Resource.String.edtLength), null); password.RefreshDrawableState(); return(false); } return(true); }
public void SetConsoleText(string s) { activity.RunOnUiThread(() => { console.Text = s; console.RefreshDrawableState(); //scrollView.ScrollTo(0, (int)((console.LineHeight + console.LineSpacingExtra) * (console.LineCount + 1))); // scrollView.FullScroll(FocusSearchDirection.Down); }); new System.Threading.Thread(FullScrollDownDelayed).Start(); }
private bool isValidLogin() { if (UsernameEdit.Text.Length == 0) { UsernameEdit.SetError(GetString(Resource.String.invalidField), null); UsernameEdit.RefreshDrawableState(); return(false); } if (PasswordEdit.Text.Length == 0) { PasswordEdit.SetError(GetString(Resource.String.invalidField), null); PasswordEdit.RefreshDrawableState(); return(false); } return(true); }