public AggregatedContact(IContactProfile seed, IContactProfile addendum)
        {
            Guard.ArgumentNotNull(seed, "seed");
            Guard.ArgumentNotNull(addendum, "addendum");

            Title          = seed.Title ?? addendum.Title;
            FullName       = seed.FullName ?? addendum.FullName;
            DateOfBirth    = seed.DateOfBirth ?? addendum.DateOfBirth;
            Tags           = Concat(seed.Tags, addendum.Tags, StringComparer.InvariantCultureIgnoreCase);
            Avatars        = Concat(seed.Avatars, addendum.Avatars, EqualityComparer <Uri> .Default);
            Organizations  = Concat(seed.Organizations, addendum.Organizations, ContactAssociationComparer.Instance);
            Relationships  = Concat(seed.Relationships, addendum.Relationships, ContactAssociationComparer.Instance);
            EmailAddresses = Concat(seed.EmailAddresses, addendum.EmailAddresses, ContactAssociationComparer.Instance);
            PhoneNumbers   = Concat(seed.PhoneNumbers, addendum.PhoneNumbers, ContactAssociationComparer.Instance);
        }
Exemple #2
0
 public ContactProfilePage(ContactsLib.Contact contact, IContactProfile iContactProfile)
 {
     InitializeComponent();
     MyViewModel.CurrentContact = contact;
     i_ContactProfile           = iContactProfile;
 }