private void CheckCode(string text) { _codeEntry.Unfocus(); if (!ReadCode?.Invoke(text) ?? true) { _dialog.Show(); } }
private void CheckCode(string text) { codeEntry.Unfocus(); if (!ReadCode?.Invoke(text) ?? true) { DisplayAlert("Código erroneo", "El código que has introducido no es válido", "OK"); } else { //await firebaseHelper.AddPerson(Convert.ToInt32(codeEntry.Text.Substring(7)), nameEntry.Text.ToUpper()); //await DisplayAlert("Success", "Person Added Successfully to FireBase", "OK"); } }