private void OnContactUpdated(ContactDetailViewModel source, Contact contact)
        {
            var contactInList = Contacts.Single(c => c.Id == contact.Id);

            contactInList.Id        = contact.Id;
            contactInList.FirstName = contact.FirstName;
            contactInList.LastName  = contact.LastName;
            contactInList.Phone     = contact.Phone;
            contactInList.Email     = contact.Email;
            contactInList.IsBlocked = contact.IsBlocked;
        }
Exemple #2
0
        private void OnContactUpdated(ContactDetailViewModel source, Contact contact)
        {
            // Here we need to find the corresponding Contact object in our
            // ObservableCollection first.
            var contactInList = Contacts.Single(c => c.Id == contact.Id);

            contactInList.Id        = contact.Id;
            contactInList.FirstName = contact.FirstName;
            contactInList.LastName  = contact.LastName;
            contactInList.Phone     = contact.Phone;
            contactInList.Email     = contact.Email;
            contactInList.IsBlocked = contact.IsBlocked;
        }