Exemple #1
0
 private async void tsSavePDF_Click(object sender, EventArgs e)
 {
     if (await exportHelper.SavePDF(new List <ScannedImage> {
         ImageList.Images[ImageIndex]
     }, null))
     {
         if (appConfigManager.Config.DeleteAfterSaving)
         {
             await DeleteCurrentImage();
         }
     }
 }
Exemple #2
0
 private async void SavePDF(List <ScannedImage> images)
 {
     if (await exportHelper.SavePDF(images, notify))
     {
         if (appConfigManager.Config.DeleteAfterSaving)
         {
             SafeInvoke(() =>
             {
                 imageList.Delete(imageList.Images.IndiciesOf(images));
             });
         }
     }
 }