public TestDirProcMain() { InitializeComponent(); _EventLog = new Logging(); _EventLog.logFileName = "EventLog"; _EventLog.WriteToLog("EventLog has been created."); _validExtList = Properties.Settings.Default.ValidFileExt.Split(',').ToList<string>(); System.Collections.Specialized.StringCollection sc = new System.Collections.Specialized.StringCollection(); sc = Properties.Settings.Default.ScanDirectories; if (sc.Count > 0) { _scanDirs = new string[sc.Count]; sc.CopyTo(_scanDirs, 0); } else { _scanDirs = new string[1]; _scanDirs[0] = Properties.Settings.Default.ScanDirectory; } tbRootDir.Text = initTestDirectory(_scanDirs[0], "Scan"); tbOuputDir.Text = initTestDirectory(Properties.Settings.Default.OutputDirectory,"Output"); tbFailedDir.Text = initTestDirectory(Properties.Settings.Default.FailedDirectory,"Failed");; tbProcessedDir.Text = initTestDirectory(Properties.Settings.Default.ProcessedDirectory, "Processed"); ; tbFileName.Text = Properties.Settings.Default.TestFileName; }
public DirectoryProcessor(string[] pScanDirs, string pValidFileExt, string pOutputDir, string pProcessedDir, string pFailedDir, Logging pLogger) { if (pLogger == null) { _debugLog = new Logging(); } else { _debugLog = pLogger; } _scanDirs = pScanDirs; _validExtList = pValidFileExt.Split(',').ToList<string>(); _outputDir = initDirectory(pOutputDir); _processedDir = initDirectory(pProcessedDir); //jvc _failedDir = initDirectory(pFailedDir); initDirectory(pFailedDir + @"\" + Properties.Settings.Default.FailedSubDirUnsupported); initDirectory(pFailedDir + @"\" + Properties.Settings.Default.FailedSubDirConvert); }