DoDataExchangeToParticipants()
{
AssertValid();
EmailParticipantCriteria [] aoParticipantsCriteria =
m_oAnalyzeEmailNetworkDialogUserSettings.ParticipantsCriteria;
if (aoParticipantsCriteria == null)
{
return;
}
DataGridViewRowCollection oRows = dgvParticipants.Rows;
foreach (EmailParticipantCriteria oEmailParticipantCriteria in
aoParticipantsCriteria)
{
Int32 iNewRowIndex = oRows.Add();
DataGridViewRow oRow = oRows[iNewRowIndex];
DataGridViewCellCollection oCells = oRow.Cells;
oCells[this.colParticipant.Name].Value = AnalyzerToParticipant(
oEmailParticipantCriteria.Participant);
IncludedIn eIncludedIn = oEmailParticipantCriteria.IncludedIn;
if ( (eIncludedIn & IncludedIn.From) != 0 )
{
oCells[this.colFrom.Name].Value = true;
}
if ( (eIncludedIn & IncludedIn.To) != 0 )
{
oCells[this.colTo.Name].Value = true;
}
if ( (eIncludedIn & IncludedIn.Cc) != 0 )
{
oCells[this.colCc.Name].Value = true;
}
if ( (eIncludedIn & IncludedIn.Bcc) != 0 )
{
oCells[this.colBcc.Name].Value = true;
}
}
}