コード例 #1
0
        /// <summary>
        /// Adds new communication device to the list of the communicators
        /// </summary>
        /// <param name="in_communicator"></param>
        public void AddCommunicator(ICommunicator in_communication_interface)
        {
            byte interface_index;

            lock (m_communication_interfaces)
            {
                m_communication_interfaces.Add(in_communication_interface);
                interface_index = (byte)(m_communication_interfaces.Count - 1);
            }

            in_communication_interface.AddToManager(this, interface_index);
        }