private void button_Add_Click(object sender, RoutedEventArgs e) { AddContact addContact = new AddContact(); addContact.Owner = this; Contact newContact = new Contact(); addContact.LoadContact(newContact); addContact.Show(); }
private async void List1_ItemSelected(object sender, SelectedItemChangedEventArgs e) { var cnt = e.SelectedItem as contact; var page = new AddContact(cnt); // DisplayAlert("alert", cnt.FirstName.ToString(), "exit"); // page.ContactUpdate += (source, contact) => { // var x= _contactlist.Where(y=> y.FirstName== cnt.FirstName) cnt.FirstName = contact.FirstName; cnt.LastName = contact.LastName; cnt.Phone = contact.Phone; cnt.IsBlocked = contact.IsBlocked; }; await Navigation.PushModalAsync(page); // list1.SelectedItem = null; }
private void button1_Click(object sender, EventArgs e) { AddContact addContact = new AddContact(); addContact.Show(); }