Smrf.NodeXL.ExcelTemplate.AnalyzeEmailNetworkDialog.DoDataExchangeFromParticipants C# (CSharp) Method

DoDataExchangeFromParticipants() protected method

protected DoDataExchangeFromParticipants ( ) : void
return void
    DoDataExchangeFromParticipants()
    {
        AssertValid();

        List<EmailParticipantCriteria> oList =
            new List<EmailParticipantCriteria>();

        foreach (DataGridViewRow oRow in dgvParticipants.Rows)
        {
            if (oRow.IsNewRow)
            {
                continue;
            }

            EmailParticipantCriteria oEmailParticipantCriteria =
                DataGridViewRowToEmailParticipantCriteria(oRow);

            if ( !String.IsNullOrEmpty(oEmailParticipantCriteria.Participant) )
            {
                oList.Add(oEmailParticipantCriteria);
            }
        }

        m_oAnalyzeEmailNetworkDialogUserSettings.ParticipantsCriteria = 
            (oList.Count == 0) ? null : oList.ToArray();
    }