public SearchContactsViewModel(Contact contact,ref ContactViewModel cvm, ContactRepository contactRepository)
        {
            base.DisplayName = Resources.SearchContactsViewModel_DisplayName;
            if (contact == null)
                throw new ArgumentNullException("contact");

            if (contactRepository == null)
                throw new ArgumentNullException("contactRepository");

            _contact = contact;
            _contactRepository = contactRepository;
        }
 void CreateNewContacts()
 {
     Contact newContacts = Contact.CreateNewContacts();
     ContactViewModel workspace = new ContactViewModel(newContacts, _contactRepository);
     this.Description.Add(workspace);
     this.SetActiveWorkspace(workspace);
 }
 void SearchAllContacts()
 {
     Contact newContacts = Contact.CreateNewContacts();
     ContactViewModel cvm = new ContactViewModel(newContacts, _contactRepository);
     SearchContactsViewModel workspace = new SearchContactsViewModel(newContacts, ref cvm, _contactRepository);
     this.Description.Add(workspace);
     this.SetActiveWorkspace(workspace);
 }