From 18743629c682321bfc77cf1d02fb1c7f4fbc737a Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 27 Feb 2012 16:13:34 +0000 Subject: [PATCH] --- .../Config/SectionConfig.cs | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs b/PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs index 548a9da5..d0ac6973 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/SectionConfig.cs @@ -285,20 +285,19 @@ namespace VEPROMS.CSLA.Library if (s == string.Empty) s = _Xp.ParentValue("Section", "Pagination"); // get the parent value //If there is no parent value, then use the volian default - //if (s == string.Empty) - //{ - // if (MyFormat != null) - // { - // bool rval = MyFormat.MyStepSectionLayoutData.BreakOnSections; - // return (rval) ? SectionPagination.Separate : SectionPagination.Continuous;// default to volian default - // } - // else - // { - // bool rval = MyDefaultFormat.MyStepSectionLayoutData.BreakOnSections; - // return (rval) ? SectionPagination.Separate : SectionPagination.Continuous;// default to volian default - // } - //} - if (s == string.Empty) return SectionPagination.Continuous; + if (s == string.Empty) + { + if (MyFormat != null) + { + bool rval = MyFormat.MyStepSectionLayoutData.BreakOnSections; + return (rval) ? SectionPagination.Separate : SectionPagination.Continuous;// default to volian default + } + else + { + bool rval = MyDefaultFormat.MyStepSectionLayoutData.BreakOnSections; + return (rval) ? SectionPagination.Separate : SectionPagination.Continuous;// default to volian default + } + } return (SectionPagination)int.Parse(s); } set