B2019-100: UCF check off & check off header issues

This commit is contained in:
2019-08-01 15:01:32 +00:00
parent c6f615bceb
commit 2b74bd52ab
3 changed files with 12 additions and 7 deletions

View File

@@ -775,7 +775,11 @@ namespace VEPROMS
lblCheckoffHeading.Enabled = true;
ppCmbxCheckoffHeading.Enabled = true;
ppCmbxCheckoffHeading.DataSource = chkoffHeaderList;
ppCmbxCheckoffHeading.SelectedIndex = _SectionConfig.Section_CheckoffHeaderSelection;
// B2019-100: the checkoffselection may be larger than number in the list if elements of list were made inactive from UCF. Adjust as necessary:
if (_SectionConfig.Section_CheckoffHeaderSelection >= ppCmbxCheckoffHeading.Items.Count)
ppCmbxCheckoffHeading.SelectedIndex = -1;
else
ppCmbxCheckoffHeading.SelectedIndex = _SectionConfig.Section_CheckoffHeaderSelection;
}
else
{