Esempio n. 1
0
 protected override void ExecuteAction(IResourceList selectedResources)
 {
     if (selectedResources.Count == 1)
     {
         base.ExecuteAction(selectedResources);
     }
     else
     {
         string[] files = SaveMessages(selectedResources);
         OutlookFacadeHelper.CreateNewMessage("", "", EmailBodyFormat.PlainText, (IResourceList)null, files, true);
     }
 }
Esempio n. 2
0
        protected override void ExecuteAction(IResourceList selectedResources)
        {
            try
            {
                SaveAllAttachments.SaveAttachments(selectedResources, _path);

                string[] files = Directory.GetFiles(_path);
                if (files == null)
                {
                    return;
                }
                for (int i = 0; i < files.Length; ++i)
                {
                    files[i] = Path.Combine(_path, files[i]);
                }
                OutlookFacadeHelper.CreateNewMessage("", "", EmailBodyFormat.PlainText, (IResourceList)null, files, true);
            }
            catch (OutlookAttachmentException exception)
            {
                Tracer._TraceException(exception);
            }
        }
Esempio n. 3
0
 private static void ExecuteImpl()
 {
     OutlookFacadeHelper.CreateNewMessage(null, null, EmailBodyFormat.PlainText, (IResourceList)null, null, true);
 }