示例#1
0
 public static PersonViewModel Wrap(Person person, ContactList contactList)
 {
     if (person == null)
         return null;
     else
         return new PersonViewModel(person, contactList);
 }
        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);
        }
示例#3
0
 public DataGridPersonViewModel(Person person, ContactList contactList)
 {
     _person      = person;
     _copy        = _person;
     _contactList = contactList;
 }
示例#4
0
 public PersonViewModel(Person person, ContactList contactList)
     : base(person)
 {
     _contactList = contactList;
 }
示例#5
0
 public PersonViewModel(Person person, ContactList contactList)
     : base(person)
 {
     _contactList = contactList;
 }
 public ContactListViewModel(ContactList contactList, ContactListNavigationModel navigation)
 {
     _contactList = contactList;
     _navigation  = navigation;
 }
 public ContactListViewModel(ContactList contactList, ContactListNavigationModel navigation)
 {
     _contactList = contactList;
     _navigation = navigation;
 }