Пример #1
0
 /// <summary>
 /// Get all Email addresses
 /// </summary>
 /// <returns></returns>
 public Email[] GetEmailAddresses()
 {
     ElementList el = SelectElements(typeof(Email));
     int i = 0;
     Email[] result = new Email[el.Count];
     foreach (Email mail in el)
     {
         result[i] = mail;
         i++;
     }
     return result;
 }
Пример #2
0
        /// <summary>
        /// Adds a new Email Adress object
        /// </summary>
        /// <param name="mail"></param>
        public void AddEmailAddress(Email mail)
        {
            Email e = GetEmailAddress(mail.Type);
            if (e != null)
                e.Remove();

            this.AddChild(mail);
        }