public void Assign(ContactItemViewModel contact) { this.Name.Assign(contact.Name); this.Photo = contact.Photo; this.Address.Assign(contact.Address); this.Email = contact.Email; this.Phone = contact.Phone; this.BirthDate = contact.BirthDate; this.Prefix = contact.Prefix; this.Notes = contact.Notes; }
public static ContactEditViewModel Create(ContactItemViewModel contact, IList <string> cities, IList <string> states) { return(ViewModelSource.Create(() => new ContactEditViewModel(contact, cities, states))); }
protected ContactEditViewModel(ContactItemViewModel contact, IList <string> cities, IList <string> states) { this.Contact = contact; this.Cities = cities; this.States = states; }