Esempio n. 1
0
        private void AddMeetingLocation(Outlook.AppointmentItem appItem)
        {
            //search gal
            var exchange = SearchExchange(appItem.Location);

            if (exchange != null)
            {
                Contacts.Add(new ContactInfo(exchange));
                return;
            }

            //search local contacts
            var contact = SearchOutlookContacts(appItem.Location);

            if (contact != null)
            {
                Contacts.Add(new ContactInfo(contact));
                return;
            }

            //add empty
            Contacts.Add(ContactInfo.Empty(appItem.Location));
        }