Ejemplo n.º 1
0
        /// <summary>
        /// Adds new item to the collection. This method doesn't set HasChanges falg.
        /// </summary>
        /// <param name="uriScheme">URI scheme.</param>
        /// <param name="transport">SIP transport.</param>
        /// <param name="host">Gateway host.</param>
        /// <param name="port">Gateway port.</param>
        /// <param name="realm">Gateway realm.</param>
        /// <param name="userName">Gateway user name.</param>
        /// <param name="password">Gateway password.</param>
        /// <returns>Returns new added item.</returns>
        internal SIP_Gateway AddInternal(string uriScheme,string transport,string host,int port,string realm,string userName,string password)
        {
            SIP_Gateway gw = new SIP_Gateway(this,uriScheme,transport,host,port,realm,userName,password);
            m_pCollection.Add(gw);

            return gw;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds new item to the collection. This method doesn't set HasChanges falg.
        /// </summary>
        /// <param name="uriScheme">URI scheme.</param>
        /// <param name="transport">SIP transport.</param>
        /// <param name="host">Gateway host.</param>
        /// <param name="port">Gateway port.</param>
        /// <param name="realm">Gateway realm.</param>
        /// <param name="userName">Gateway user name.</param>
        /// <param name="password">Gateway password.</param>
        /// <returns>Returns new added item.</returns>
        internal SIP_Gateway AddInternal(string uriScheme, string transport, string host, int port, string realm, string userName, string password)
        {
            SIP_Gateway gw = new SIP_Gateway(this, uriScheme, transport, host, port, realm, userName, password);

            m_pCollection.Add(gw);

            return(gw);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Adds new item to the collection.
        /// </summary>
        /// <param name="uriScheme">URI scheme.</param>
        /// <param name="transport">SIP transport.</param>
        /// <param name="host">Gateway host.</param>
        /// <param name="port">Gateway port.</param>
        /// <param name="realm">Gateway realm.</param>
        /// <param name="userName">Gateway user name.</param>
        /// <param name="password">Gateway password.</param>
        /// <returns>Returns new added item.</returns>
        public SIP_Gateway Add(string uriScheme, string transport, string host, int port, string realm, string userName, string password)
        {
            SIP_Gateway gw = AddInternal(uriScheme, transport, host, port, realm, userName, password);

            m_pOwner.SetValuesChanged();

            return(gw);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Removes specified item from the collection.
 /// </summary>
 /// <param name="value">Item to remove.</param>
 public void Remove(SIP_Gateway value)
 {
     m_pCollection.Remove(value);
     m_pOwner.SetValuesChanged();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Removes specified item from the collection.
 /// </summary>
 /// <param name="value">Item to remove.</param>
 public void Remove(SIP_Gateway value)
 {
     m_pCollection.Remove(value);
     m_pOwner.SetValuesChanged();
 }