Пример #1
0
        private void InfoPhone()
        {
            PhoneMediator.Phone = (SelectedPhone.Clone()) as Phone;
            InfoWindow infoWindow = new InfoWindow();

            infoWindow.ShowDialog();
            PhoneMediator.Phone = null;
        }
Пример #2
0
        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();
        }
Пример #3
0
        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;
        }