Beispiel #1
0
        public TagLocal(IContactTag source, AddressBookLocal addressBook, ContactsManager contactsManager)
            : this(-1, addressBook, contactsManager)
        {
            Key = source.Key;

            UpdateFrom(source);
        }
Beispiel #2
0
 public TagLocal(long id, AddressBookLocal addressBook, ContactsManager contactsManager)
     : base(addressBook)
 {
     _contactsManager = contactsManager;
     Id          = id;
     AddressBook = addressBook;
 }
Beispiel #3
0
        public ContactInfoLocal(long id, AddressBookLocal addressBook, ContactsManager contactsManager)
            : base(addressBook)
        {
            Id               = id;
            AddressBook      = addressBook;
            Key              = String.Empty;
            _contactsManager = contactsManager;

            PhoneNumbers = new ObservableCollection <IContactPhoneLocal>();
            Emails       = new ObservableCollection <IContactEmailLocal>();
            Tags         = new ObservableCollection <IContactTagLocal>();

            _phoneNumbersWrapper = new ObservableCollectionMapperConverter <IContactPhoneLocal, IContactPhone>(PhoneNumbers);
            _emailsWrapper       = new ObservableCollectionMapperConverter <IContactEmailLocal, IContactEmail>(Emails);
            _tagsWrapper         = new ObservableCollectionMapperConverter <IContactTagLocal, IContactTag>(Tags);

            PhoneNumbers.CollectionChanged += InternalCollectionChanged;
            Emails.CollectionChanged       += InternalCollectionChanged;
            Tags.CollectionChanged         += InternalCollectionChanged;
        }
Beispiel #4
0
 public ContactInfoLocal(IContactInfoLocal contactInfo, AddressBookLocal addressBook, ContactsManager contactsManager)
     : this(contactInfo.Id, addressBook, contactsManager)
 {
     UpdateFrom(contactInfo, true);
 }
Beispiel #5
0
 public ContactInfoLocal(AddressBookLocal addressBook, ContactsManager contactsManager)
     : this(-1, addressBook, contactsManager)
 {
 }