public void AddAttachment(Other.EmailAttachment attachment) { attachments.Add(attachment); ListViewItem item = new ListViewItem(attachment.GetAttachmentName()); tbListView1.Items.Add(item); }
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); }