private void EmailPDF_Click(object sender, RoutedEventArgs e) { PDFExport pdf = new PDFExport(); string filename; Stone stone = StonesView.GetCurrentSelectedStone(); if (stone.MediaType == 2) { MessageBox.Show("You can't create PDF for a video"); return; } if (stone != null) { filename = pdf.CreateRawPDFinTemp(stone); if (!String.IsNullOrWhiteSpace(filename)) { List <string> files = new List <string>(); files.Add(stone.FullFilePath); files.Add(filename); SharingUtils.OpenNewEmailWithOutlook(files); } } }
private void ViewEmailMenu_Click(object sender, RoutedEventArgs e) { SharingUtils sharing = new SharingUtils(); List <string> files = StonesView.GetCurrentSelectedStoneFilenames(); if (files != null) { SharingUtils.OpenNewEmailWithOutlook(files); } else { MessageBox.Show("No stones selected"); } }