Example #1
0
        /// <summary>
        /// Add new email address to the collection.
        /// </summary>
        /// <param name="type">Email address type. Note: This value can be flagged value !</param>
        /// <param name="email">Email address.</param>
        public EmailAddress Add(EmailAddressType_enum type,string email)
        {            
            Item item = m_pOwner.Items.Add("EMAIL",EmailAddress.EmailTypeToString(type),"");
            item.SetDecodedValue(email);
            EmailAddress emailAddress = new EmailAddress(item,type,email);
            m_pCollection.Add(emailAddress);

            return emailAddress;
        }
Example #2
0
 /// <summary>
 /// Removes specified item from the collection.
 /// </summary>
 /// <param name="item">Item to remove.</param>
 public void Remove(EmailAddress item)
 {
     m_pOwner.Items.Remove(item.Item);
     m_pCollection.Remove(item);
 }
 /// <summary>
 /// Removes specified item from the collection.
 /// </summary>
 /// <param name="item">Item to remove.</param>
 public void Remove(EmailAddress item)
 {
     m_pOwner.Items.Remove(item.Item);
     m_pCollection.Remove(item);
 }