Пример #1
0
        private List <string> CheckPathList(ReportGenre genre, IEnumerable <string> list)
        {
            var pathList = new PathList {
                PathStorage = PathStorageMode.Absolute
            };

            try
            {
                pathList.AddRange(list);
            }
            catch (Exception e)
            {
                Report.Error(p => p.DescriptionReasonLocation(genre, $"Error in path to source file. {e.Message}", this.ProjectFilePath), e);
            }

            return(pathList.ToList());
        }
Пример #2
0
 public void DescriptionReasonLocation(ReportGenre reportGenre, string reason, string location)
 {
     this.AddReportGenre(reportGenre);
     this.AddReason(reason);
     this.AddLocation(location);
 }
Пример #3
0
 private void AddReportGenre(ReportGenre reportGenre)
 {
     this.ReportGenre = reportGenre;
 }