diff --git a/PDFWorkflowManager/.vs/PDFWorkflowManager/v16/.suo b/PDFWorkflowManager/.vs/PDFWorkflowManager/v16/.suo index 3c23758..559ad29 100644 Binary files a/PDFWorkflowManager/.vs/PDFWorkflowManager/v16/.suo and b/PDFWorkflowManager/.vs/PDFWorkflowManager/v16/.suo differ diff --git a/PDFWorkflowManager/PDFWorkflowManager/MainForm.cs b/PDFWorkflowManager/PDFWorkflowManager/MainForm.cs index fb329c9..b3be478 100644 --- a/PDFWorkflowManager/PDFWorkflowManager/MainForm.cs +++ b/PDFWorkflowManager/PDFWorkflowManager/MainForm.cs @@ -279,7 +279,9 @@ namespace PDFWorkflowManager MessageBox.Show("Origs dir not found.", "Origs dir not found.", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } - else if (Directory.GetFiles(Path.Combine(txtProjectDir.Text, Properties.Settings.Default.OrigsDir), "*.tif").Length == 0 && Directory.GetFiles(Path.Combine(txtProjectDir.Text, Properties.Settings.Default.OrigsDir), "*.tiff").Length == 0) + else if (Directory.GetFiles(Path.Combine(txtProjectDir.Text, Properties.Settings.Default.OrigsDir), "*.tif").Length == 0 + && Directory.GetFiles(Path.Combine(txtProjectDir.Text, Properties.Settings.Default.OrigsDir), "*.tiff").Length == 0 + && Directory.GetFiles(Path.Combine(txtProjectDir.Text, Properties.Settings.Default.OrigsDir), "*.png").Length == 0) { MessageBox.Show("Origs files not found.", "Error no TIF files found.", MessageBoxButtons.OK, MessageBoxIcon.Error); return; @@ -331,6 +333,7 @@ namespace PDFWorkflowManager } + if (Directory.Exists(Path.Combine(txtProjectDir.Text, Properties.Settings.Default.WorkOutDir))) { try @@ -353,6 +356,7 @@ namespace PDFWorkflowManager } } + if (File.Exists(txtProjectDir.Text + @"\run_simplex_sorting_script.txt")) { checkSimplex.Checked = true; @@ -428,6 +432,13 @@ namespace PDFWorkflowManager string[] strFiles = Directory.GetFiles(origsDir, "*.tif"); int sourceFileCount = strFiles.Length; + if (sourceFileCount == 0) + { + strFiles = Directory.GetFiles(origsDir, "*.png"); + sourceFileCount = strFiles.Length; + } + + int odd = 1; int even = sourceFileCount; Directory.CreateDirectory(workDir);