Exemplo n.º 1
0
            /// <summary>
            /// Default constructor.
            /// </summary>
            /// <param name="participant">RTP local participant.</param>
            /// <exception cref="ArgumentNullException">Is raised when <b>participant</b> null reference.</exception>
            public RTP_ParticipantInfo(RTP_Participant participant)
            {
                if (participant == null)
                {
                    throw new ArgumentNullException("participant");
                }

                m_pParticipant = participant;
            }
Exemplo n.º 2
0
        /// <summary>
        /// Searches specified participant tree node.
        /// </summary>
        /// <param name="participant">RTP participant.</param>
        /// <returns>Returns specified participant tree node or null if no matching node.</returns>
        private TreeNode FindParticipantNode(RTP_Participant participant)
        {
            if (participant == null)
            {
                throw new ArgumentNullException("participant");
            }

            foreach (TreeNode node in m_pParticipants.Nodes)
            {
                if (node.Text == participant.CNAME)
                {
                    return(node);
                }
            }

            return(null);
        }
Exemplo n.º 3
0
            /// <summary>
            /// Default constructor.
            /// </summary>
            /// <param name="participant">RTP local participant.</param>
            /// <exception cref="ArgumentNullException">Is raised when <b>participant</b> null reference.</exception>
            public RTP_ParticipantInfo(RTP_Participant participant)
            {
                if (participant == null)
                {
                    throw new ArgumentNullException("participant");
                }

                m_pParticipant = participant;
            }
Exemplo n.º 4
0
        /// <summary>
        /// Searches specified participant tree node.
        /// </summary>
        /// <param name="participant">RTP participant.</param>
        /// <returns>Returns specified participant tree node or null if no matching node.</returns>
        private TreeNode FindParticipantNode(RTP_Participant participant)
        {
            if (participant == null)
            {
                throw new ArgumentNullException("participant");
            }

            foreach (TreeNode node in m_pParticipants.Nodes)
            {
                if (node.Text == participant.CNAME)
                {
                    return node;
                }
            }

            return null;
        }