/// <summary> /// Inserts a new address into the collection at the specified location. /// </summary> /// <param name="index">The location in the collection where you want to add the address.</param> /// <param name="address">Address to add.</param> public void Insert(int index,Address address) { address.Owner = this; m_pAddresses.Insert(index,address); OnCollectionChanged(); }
/// <summary> /// Removes specified address from the collection. /// </summary> /// <param name="address">Address to remove.</param> public void Remove(Address address) { address.Owner = null; m_pAddresses.Remove(address); OnCollectionChanged(); }
/// <summary> /// Adds a new address to the end of the collection. /// </summary> /// <param name="address">Address to add.</param> public void Add(Address address) { address.Owner = this; m_pAddresses.Add(address); OnCollectionChanged(); }