public void AddAttachment(Other.EmailAttachment attachment)
        {
            attachments.Add(attachment);
            ListViewItem item = new ListViewItem(attachment.GetAttachmentName());

            tbListView1.Items.Add(item);
        }
Exemplo n.º 2
0
        public List <Other.EmailAttachment> GetAttachments()
        {
            List <Other.EmailAttachment> attachments = new List <Other.EmailAttachment>();

            foreach (var attachment in mes.Attachments)
            {
                Other.EmailAttachment att = new Other.EmailAttachment(attachment);
                attachments.Add(att);
            }

            return(attachments);
        }