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(); } } }
private async void SavePDF(List <ScannedImage> images) { if (await exportHelper.SavePDF(images, notify)) { if (appConfigManager.Config.DeleteAfterSaving) { SafeInvoke(() => { imageList.Delete(imageList.Images.IndiciesOf(images)); }); } } }