private void Export_Requested(object sender, ExportEventArgs args)
        {
            switch (args.ExportType)
            {
            case ExportType.Image:
                ExportImages(FileCardExporterFactory.BuildFileCardExporter(false));
                break;

            case ExportType.SingleImage:
                ExportImages(FileCardExporterFactory.BuildImageExporter());
                break;

            case ExportType.SingleImageClipboard:
                ExportImages(FileCardExporterFactory.BuildImageClipboardExporter());
                break;

            case ExportType.PDFSharp:
                ExportViaPDFSharp(false);
                break;
            }
        }
        private void ExportImages(bool bExportAllLayouts)
        {
            ICardExporter zFileCardExporter = FileCardExporterFactory.BuildFileCardExporter(bExportAllLayouts);

            if (null == zFileCardExporter)
            {
                return;
            }

#if true
            var zWait = new WaitDialog(
                2,
                zFileCardExporter.ExportThread,
                "Export",
                new string[] { "Layout", "Card" },
                450);
            zWait.ShowDialog(this);
#else // non threaded
            zFileCardExporter.ExportThread();
#endif
        }
 private void exportImagesToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ExportImages(FileCardExporterFactory.BuildFileCardExporter(true));
 }