public void LoadConfiguration()
        {
            // Here, we need to determine the location of the configuration XML file, from Windows 'Registry', and apply the settings stored in it to the values
            // For now, we will leave the settings to their default values specified in the class constructor
            //
            //m_LogFilePath = "C:\\";
            //m_LogFileName = "calls-log.txt";
            //m_LogDBHost = "192.168.1.10";
            //m_LogDBName = "billing";
            //m_LogDBUser = "******";
            //m_LogDBPassword = "******";
            //m_LogDBTable = "calls";
            //

            // Here, for the test purpose, we will specify only one listener of the type 'COMM'
            for (int i = 0; i < 3; i++)
            {
                ListenerSettingsForSerialPort sps;
                ListenerInstanceSettings      lts = new ListenerInstanceSettings();
                lts.Type      = ListenerType.COMM;
                lts.StationId = "INSTANCE" + i.ToString();

                sps                    = lts.SerialPortSettings;
                sps.PortName           = "COM1" + i.ToString();
                lts.SerialPortSettings = sps;

                this.AddListenerSettings(lts);
            }
        }
 public void AddListenerSettings(ListenerInstanceSettings aSettings)
 {
     if (aSettings != null)
     {
         this.m_ListenerInstances.Add(aSettings);
     }
 }
        public void LoadConfiguration()
        {
            // Here, we need to determine the location of the configuration XML file, from Windows 'Registry', and apply the settings stored in it to the values
            // For now, we will leave the settings to their default values specified in the class constructor
            //
            //m_LogFilePath = "C:\\";
            //m_LogFileName = "calls-log.txt";
            //m_LogDBHost = "192.168.1.10";
            //m_LogDBName = "billing";
            //m_LogDBUser = "******";
            //m_LogDBPassword = "******";
            //m_LogDBTable = "calls";
            //

            // Here, for the test purpose, we will specify only one listener of the type 'COMM'
            for (int i = 0; i < 3; i++)
            {
                ListenerSettingsForSerialPort sps;
                ListenerInstanceSettings lts = new ListenerInstanceSettings();
                lts.Type = ListenerType.COMM;
                lts.StationId = "INSTANCE" + i.ToString();

                sps = lts.SerialPortSettings;
                sps.PortName = "COM1" + i.ToString();
                lts.SerialPortSettings = sps;

                this.AddListenerSettings(lts);
            }
        }
 public void AddListenerSettings( ListenerInstanceSettings aSettings)
 {
     if (aSettings != null) this.m_ListenerInstances.Add( aSettings);
 }