private async void OnSelectedContact(Contact contact) { if (contact != null) { await AlertServices.AlertAsync("Contact", $"Número de teléfono de {contact.Name} es {string.Format("(000)-000-0000", contact.PhoneNumber)}"); } }
private async void OnMore(Contact contact) { var optionSelected = await App.Current.MainPage.DisplayActionSheet("Select an option", null, null, new string[] { $"Call {contact.PhoneNumber}", "Edit" }); if (optionSelected.ToString() == $"Call {contact.PhoneNumber}") { PhoneDialer.Open(contact.PhoneNumber); } else { await NavigationServices.ModalPush(new EditContactPage(Contacts, contact)); } }
private async void OnDeleteContact(Contact selectedContact) { Contacts.Remove(selectedContact); await AlertServices.AlertAsync("Contacto borrado", "Contacto borrado exitosamente"); }