示例#1
0
文件: FViewer.cs 项目: damieng/naps2
 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();
         }
     }
 }
示例#2
0
文件: FDesktop.cs 项目: gas3/twain
 private async void SavePDF(List <ScannedImage> images)
 {
     if (await exportHelper.SavePDF(images, notify))
     {
         if (appConfigManager.Config.DeleteAfterSaving)
         {
             SafeInvoke(() =>
             {
                 imageList.Delete(imageList.Images.IndiciesOf(images));
             });
         }
     }
 }