private void DeleteAttendee(Attendee attendee)
        {
            if (attendee.IsOrganizer) return;

            int pos = Meeting.Attendees.IndexOf(x => x.EmailAddress.IsEqualTo(attendee.EmailAddress));

            Meeting.Attendees.RemoveAt(pos);

            PopulateAttendees();
        }
        private void ContactSelected(Contact contact)
        {
            var attendee = new Attendee
            {
                EmailAddress = contact.EmailAddresses[0]
            };

            AddAttendee(attendee);
        }
        private void AddAttendee(Attendee attendee)
        {
            if (Meeting.Attendees.Find(x => x.EmailAddress.IsEqualTo(attendee.EmailAddress)) == null)
            {
                Meeting.Attendees.Add(attendee);
            }

            PopulateAttendees();
        }
        private void UserSelected(User user)
        {
            var attendee = new Attendee
            {
                EmailAddress = new EmailAddress
                {
                    Address = user.UserPrincipalName,
                    Name = user.DisplayName
                }
            };

            AddAttendee(attendee);
        }