private void InfoPhone() { PhoneMediator.Phone = (SelectedPhone.Clone()) as Phone; InfoWindow infoWindow = new InfoWindow(); infoWindow.ShowDialog(); PhoneMediator.Phone = null; }
void Handle_ItemTapped(object sender, Xamarin.Forms.ItemTappedEventArgs e) { var selectedContact = e.Item as listModel; ((ListView)sender).SelectedItem = null; SelectedPhone?.Invoke(this, selectedContact?.PhoneNumber); Navigation.PopAsync(); }
private void UpdatePhone() { PhoneMediator.Phone = (SelectedPhone.Clone()) as Phone; AddWindow addWindow = new AddWindow(); addWindow.ShowDialog(); if (PhoneMediator.IsApply) { Db.Update(PhoneMediator.Phone); Db.SaveChanges(); } PhoneMediator.Phone = null; }