This commit is contained in:
Kathy Ruffing 2012-02-27 16:13:34 +00:00
parent 1cad967d8d
commit 18743629c6

View File

@ -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