示例#1
0
        private void SendWithMail()
        {
            var selectedfiles = ListerManager.Instance.ListerViewManager.CurrentListerView
                .GetSelection().Select(s => s.FullPath);

            var message = new MapiMailMessage("", "");
            foreach (var file in selectedfiles)
            {
                message.Files.Add(file);
            }
            message.ShowDialog();
        }
示例#2
0
 /// <summary>
 /// Adds a new recipient with the specified address, display name and recipient type to this collection.
 /// </summary>
 public void Add(string address, string displayName, MapiMailMessage.RecipientType recipientType)
 {
     this.Add(new Recipient(address, displayName, recipientType));
 }
示例#3
0
 /// <summary>
 /// Creates a new recipient with the specified address, display name and recipient type.
 /// </summary>
 public Recipient(string address, string displayName, MapiMailMessage.RecipientType recipientType)
 {
     Address = address;
     DisplayName = displayName;
     RecipientType = recipientType;
 }
示例#4
0
 /// <summary>
 /// Adds a new recipient with the specified address and recipient type to this collection.
 /// </summary>
 public void Add(string address, MapiMailMessage.RecipientType recipientType)
 {
     this.Add(new Recipient(address, recipientType));
 }
示例#5
0
 /// <summary>
 /// Creates a new recipient with the specified address and recipient type.
 /// </summary>
 public Recipient(string address, MapiMailMessage.RecipientType recipientType)
 {
     Address = address;
     RecipientType = recipientType;
 }