diff --git a/SabreTools.Reports/BaseReport.cs b/SabreTools.Reports/BaseReport.cs index ab2ff04c..2a399925 100644 --- a/SabreTools.Reports/BaseReport.cs +++ b/SabreTools.Reports/BaseReport.cs @@ -18,7 +18,10 @@ namespace SabreTools.Reports #endregion - public List Statistics { get; } + /// + /// Set of DatStatistics objects to use for formatting + /// + protected List _statistics; /// /// Create a new report from the filename @@ -26,7 +29,7 @@ namespace SabreTools.Reports /// List of statistics objects to set public BaseReport(List statsList) { - Statistics = statsList; + _statistics = statsList; } /// diff --git a/SabreTools.Reports/Formats/Html.cs b/SabreTools.Reports/Formats/Html.cs index 82e89472..15bdda86 100644 --- a/SabreTools.Reports/Formats/Html.cs +++ b/SabreTools.Reports/Formats/Html.cs @@ -54,10 +54,10 @@ namespace SabreTools.Reports.Formats WriteHeader(xtw, baddumpCol, nodumpCol); // Now process each of the statistics - for (int i = 0; i < Statistics.Count; i++) + for (int i = 0; i < _statistics.Count; i++) { // Get the current statistic - DatStatistics stat = Statistics[i]; + DatStatistics stat = _statistics[i]; // If we have a directory statistic if (stat.IsDirectory) @@ -66,7 +66,7 @@ namespace SabreTools.Reports.Formats WriteIndividual(xtw, stat, baddumpCol, nodumpCol); // If we have anything but the last value, write the separator - if (i < Statistics.Count - 1) + if (i < _statistics.Count - 1) { WriteFooterSeparator(xtw, baddumpCol, nodumpCol); WriteMidHeader(xtw, baddumpCol, nodumpCol); diff --git a/SabreTools.Reports/Formats/SeparatedValue.cs b/SabreTools.Reports/Formats/SeparatedValue.cs index 9a3a0230..1ab46766 100644 --- a/SabreTools.Reports/Formats/SeparatedValue.cs +++ b/SabreTools.Reports/Formats/SeparatedValue.cs @@ -52,10 +52,10 @@ namespace SabreTools.Reports.Formats WriteHeader(svw, baddumpCol, nodumpCol); // Now process each of the statistics - for (int i = 0; i < Statistics.Count; i++) + for (int i = 0; i < _statistics.Count; i++) { // Get the current statistic - DatStatistics stat = Statistics[i]; + DatStatistics stat = _statistics[i]; // If we have a directory statistic if (stat.IsDirectory) @@ -63,7 +63,7 @@ namespace SabreTools.Reports.Formats WriteIndividual(svw, stat, baddumpCol, nodumpCol); // If we have anything but the last value, write the separator - if (i < Statistics.Count - 1) + if (i < _statistics.Count - 1) WriteFooterSeparator(svw); } diff --git a/SabreTools.Reports/Formats/Textfile.cs b/SabreTools.Reports/Formats/Textfile.cs index 33a510a2..00278319 100644 --- a/SabreTools.Reports/Formats/Textfile.cs +++ b/SabreTools.Reports/Formats/Textfile.cs @@ -42,10 +42,10 @@ namespace SabreTools.Reports.Formats StreamWriter sw = new(fs); // Now process each of the statistics - for (int i = 0; i < Statistics.Count; i++) + for (int i = 0; i < _statistics.Count; i++) { // Get the current statistic - DatStatistics stat = Statistics[i]; + DatStatistics stat = _statistics[i]; // If we have a directory statistic if (stat.IsDirectory) @@ -53,7 +53,7 @@ namespace SabreTools.Reports.Formats WriteIndividual(sw, stat, baddumpCol, nodumpCol); // If we have anything but the last value, write the separator - if (i < Statistics.Count - 1) + if (i < _statistics.Count - 1) WriteFooterSeparator(sw); }