/// <summary>
 /// The init of the Line class.
 /// </summary>
 /// <param name="cti">The actualized Telephony object</param>
 /// <param name="devID">The Dev ID</param>
 /// <param name="type">The Telephony type </param>
 public override void Init(TelephonyProvider cti, int devID, Microsoft.Ccf.Csr.Cti.Providers.TelephonyProvider.CtiType type)
 {
     base.Init(cti, devID, type);
     this.tapiCti = (TapiTelephonyAdapter)cti;
     name         = this.tapiCti.CtiTapi.GetDeviceName(devID);
     providerInfo = this.tapiCti.CtiTapi.GetDeviceProviderInfo(devID);
     switchInfo   = this.tapiCti.CtiTapi.GetDeviceSwitchInfo(devID);
     features     = this.tapiCti.CtiTapi.GetDeviceFeatures(devID);
 }
        /// <summary>
        /// The init of the Line class.
        /// </summary>
        /// <param name="cti">The actualized Telephony object</param>
        /// <param name="type">The Telephony type </param>
        public override void Init(TelephonyProvider cti, Microsoft.Ccf.Csr.Cti.Providers.TelephonyProvider.CtiType type)
        {
            base.Init(cti, type);
            LineClassProvider line = null;

            DevCount = this.tapiCti.CtiTapi.DeviceCount();
            for (int i = 0; i < DevCount; i++)
            {
                //line = new LineClass( cti, cti.CtiTapi.GetDeviceID( i ), Telephony.CtiType.TAPI );
                line = LineClassProvider.Instance();
                line.Init(this.tapiCti, this.tapiCti.CtiTapi.GetDeviceID(i), TelephonyProvider.CtiType.TAPI);
                Lines.Add(line);
            }
        }