/// <summary> /// Run a few basic sanity checks on the list of /// view-specific imports. /// View-specific sanity is not the same as model /// sanity. Neither is necessarily sane. /// True means possibly sane, false means probably /// not. /// </summary> private bool sanityCheckViewSpecific( NameValueCollection listOfImports, IReportImportData logFile) { logFile.startReportSection( "Sanity check report for view-specific imports"); bool status = true; // Count number of entities per key. foreach (String key in listOfImports.AllKeys) { string[] levels = listOfImports.GetValues(key); if (levels != null && levels.GetLength(0) > 1) { logFile.logItem("CAD data " + key + " appears to have been imported in " + "Current View Only mode multiple times. " + "It is present in views " + listOfImports.Get(key)); status = false; } } return(status); }
private void listResults( NameValueCollection listOfImports, IReportImportData logFile) { foreach (String key in listOfImports.AllKeys) { logFile.logItem(key + ": " + listOfImports.Get(key)); } }