/// <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); }
/// <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)); }