show “Compare PDF” checkbox only if “compare” folder exists OR if in Debug Mode. Rename “Debug” checkbox label to “Compare PDF” (B2012-149)

This commit is contained in:
2012-06-12 15:19:57 +00:00
parent 136a023564
commit 8cc07a788f
3 changed files with 318 additions and 292 deletions

View File

@@ -183,6 +183,13 @@ namespace VEPROMS
btnDuplxOn.Visible = false;
}
// default to print Debug info if App.config is set to debug mode
// This checkbox is now labeled as "Compare PDF"
// If the PDF location has a Compare folder or we are in Debug Mode
// then make the checkbox visible
string cmpfldr = txbPDFLocation.Text;
if (!cmpfldr.EndsWith("\\")) cmpfldr += "\\";
cmpfldr += "Compare";
cbxDebug.Visible = Directory.Exists(cmpfldr) || VlnSettings.DebugMode;
cbxDebug.Checked = VlnSettings.DebugMode;
// default to using OriginalPageBreaks (16bit page breaks) if App.config is set