public void SetContact(ContactDetails contactDetails)
 {
     if (Contact != null) Contact.ErrorsChanged -= RaiseCanExecuteChanged;
     _editingContact = contactDetails;
     Contact = new SimpleEditableContact();
     Contact.ErrorsChanged += RaiseCanExecuteChanged;
     CopyContactDetails(_editingContact, Contact);
 }
 private void CopyContactDetails(ContactDetails source, SimpleEditableContact target)
 {
     if (EditMode)
     {
         target.Id = source.Id;
         target.Name = source.Name;
         target.Surname = source.Surname;
         target.PhoneNumber = source.PhoneNumber;
         target.City = source.City;
     }
 }