Exemplo n.º 1
0
 /// <summary>
 /// Removes specified item from the collection.
 /// </summary>
 /// <param name="item">Item to remove.</param>
 public void Remove(PhoneNumber item)
 {
     m_pOwner.Items.Remove(item.Item);
     m_pCollection.Remove(item);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Add new phone number to the collection.
        /// </summary>
        /// <param name="type">Phone number type. Note: This value can be flagged value !</param>
        /// <param name="number">Phone number.</param>
        public void Add(PhoneNumberType_enum type, string number)
        {
            Item item = m_pOwner.Items.Add("TEL", PhoneNumber.PhoneTypeToString(type), number);

            m_pCollection.Add(new PhoneNumber(item, type, number));
        }