コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: gitter-badger/GS
        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);
                }
            }
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: gitter-badger/GS
        private void CreatePDF_Click(object sender, RoutedEventArgs e)
        {
            PDFExport pdf = new PDFExport();

            Stone stone = StonesView.GetCurrentSelectedStone();

            if (stone.MediaType == 2)
            {
                MessageBox.Show("You can't create PDF for a video");

                return;
            }

            if (stone != null)
            {
                pdf.CreatePDFFile(stone);
            }
        }