public ViewModelLocator() { _contactList = new ContactList(); _navigation = new ContactListNavigationModel(); Person mike = _contactList.NewPerson(); mike.Prefix = PrefixID.Mr; mike.First = "Michael"; mike.Last = "Perry"; mike.Gender = GenderEnum.Male; Person jenny = _contactList.NewPerson(); jenny.Prefix = PrefixID.Mrs; jenny.First = "Jennifer"; jenny.Last = "Perry"; jenny.Gender = GenderEnum.Female; Person.Marry(mike, jenny); }
public ContactListViewModel(ContactList contactList, ContactListNavigationModel navigation) { _contactList = contactList; _navigation = navigation; }