コード例 #1
0
ファイル: AddressList.cs プロジェクト: vipwan/CommunityServer
        /// <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();
        }
コード例 #2
0
ファイル: AddressList.cs プロジェクト: vipwan/CommunityServer
        /// <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();
        }
コード例 #3
0
ファイル: AddressList.cs プロジェクト: vipwan/CommunityServer
        /// <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();
        }