コード例 #1
0
 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;
 }
コード例 #2
0
 public static ContactEditViewModel Create(ContactItemViewModel contact, IList <string> cities, IList <string> states)
 {
     return(ViewModelSource.Create(() => new ContactEditViewModel(contact, cities, states)));
 }
コード例 #3
0
 protected ContactEditViewModel(ContactItemViewModel contact, IList <string> cities, IList <string> states)
 {
     this.Contact = contact;
     this.Cities  = cities;
     this.States  = states;
 }