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