Example #1
0
 private static void WriteInsertAddressCollection(TextWriter writer, EmailAddressCollection addresses, string messageID, string className)
 {
     for (int i = 0; i < addresses.Count; i++)
     {
         WriteInsertAddressSql(writer, addresses[i], messageID, className, i);
     }
 }
Example #2
0
        private static EmailAddressCollection GetExistOrNewAddressColleciton(EmailAddressCollection originalAddresses)
        {
            EmailAddressCollection result = originalAddresses;

            if (result == null)
            {
                result = new EmailAddressCollection();
            }

            return(result);
        }
Example #3
0
        private static EmailAddressCollection GetAddressesFromTable(DataTable addressTable, string className)
        {
            EmailAddressCollection addresses = new EmailAddressCollection();

            DataView view = GetAddressViewByClassName(addressTable, className);

            foreach (DataRowView drv in view)
            {
                EmailAddress address = new EmailAddress();

                ORMapping.DataRowToObject(drv.Row, address);

                addresses.Add(address);
            }

            return(addresses);
        }