Beispiel #1
0
        // -------------------------------------------------------------------------------------------

        // TODO - Print report
        public bool CheckEntity(ProcessingFlags pProcessingFlags, string pNamePrinted = null)
        {
            ReportWriter.WriteReportLineFeed($"+{Name} : ");
            ReportWriter.IncreaseReportLevel();

            string report;
            bool   checkOk = CheckEntity(pProcessingFlags, out report);

            if (!string.IsNullOrEmpty(report))
            {
                ReportWriter.WriteReportLineFeed(report);
                ReportWriter.DecreaseReportLevel();
                return(checkOk);
            }
            ReportWriter.DecreaseReportLevel();
            ReportWriter.WriteReportLineFeed("");
            return(checkOk);
        }
Beispiel #2
0
        // ------------------------------------------------------------------------------------------


        public bool CheckEntity(ProcessingFlags pProcessingFlags, string pNamePrinted = null)
        {
            if (IsAddonFolder(EntityPath))
            {
                new DiskEntityAddonFolder(EntityPath, ArchivedPath, ReportWriter).CheckEntity(pProcessingFlags);
                return(true);
            }

            ReportWriter.WriteReportLineFeed($"\n/{Name} :");
            ReportWriter.IncreaseReportLevel();

            string report;
            bool   checkOk = CheckEntity(pProcessingFlags, out report);

            ReportWriter.DecreaseReportLevel();
            ReportWriter.WriteReportLineFeed("");
            return(checkOk);
        }