public ScanningPage( BatchPage value )
{
InitializeComponent();
this.batchPage = value;
try
{
var config = System.Configuration.ConfigurationManager.OpenExeConfiguration(System.Configuration.ConfigurationUserLevel.None);
DebugLogFilePath = config.AppSettings.Settings["DebugLogFilePath"].Value;
bool isDirectory = !string.IsNullOrWhiteSpace(DebugLogFilePath) && Directory.Exists( this.DebugLogFilePath );
if (isDirectory)
{
DebugLogFilePath = Path.Combine( DebugLogFilePath, "CheckScanner.log" );
}
}
catch
{
// ignore any exceptions
}
}