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