Esempio n. 1
0
        private void DownloadAttatchementCommand(PrismInfrastructure.Models.Email obj)
        {
            var i = obj;

            var dialog = new SaveFileDialog()
            {
                Filter   = "Csv Files(*.csv)|*.csv",
                FileName = obj.Message.Attachments[0].Name
            };

            if (dialog.ShowDialog() == true)
            {
                SaveMailAttachment(obj.Message.Attachments[0], dialog.FileName);
            }
        }
Esempio n. 2
0
 private bool CanDownloadAttachement(PrismInfrastructure.Models.Email arg)
 {
     return(arg.Message.Attachments.Count == 1);
 }