protected Section ConstructReportSection(ReportSections section, Multiplicity mu, MultiplicityCountingRes mcr) { Section sec = null; if (!(bool)selectedReportSections.GetValue((int)section)) return sec; try { switch (section) { case ReportSections.RepResults: sec = new Section(typeof(RepResults), 1, 1, 1); sec[1].Add(0, "Corrected rates for SR " + mu.ShortName()); sec.Add(GenResultsRow(mcr)); break; case ReportSections.RepDytlewskiResults: sec = new Section(typeof(RepResults), 1, 1, 1); sec[1].Add(0, "Dytlewski rates for SR " + mu.ShortName()); sec.Add(GenDytlewskiResultsRow(mcr)); break; } } catch (Exception e) { ctrllog.TraceException(e); } return sec; }