Fixed initialization of the format dropdown list

This commit is contained in:
2016-03-04 20:45:24 +00:00
parent c100349dcb
commit f846cd5073
4 changed files with 17 additions and 2 deletions

View File

@@ -277,7 +277,10 @@ namespace VEPROMS
ppCmbxFormat.DisplayMember = "FullName";
ppCmbxFormat.ValueMember = "FullName";
ppCmbxFormat.DataSource = FormatInfoList.SortedFormatInfoList;
ppCmbxFormat.SelectedIndex = -1;
if (_SectionConfig.FormatSelection != null)
ppCmbxFormat.SelectedValue = _SectionConfig.FormatSelection;
else
ppCmbxFormat.SelectedIndex = -1;
// Get the saved settings for this user
//
// Get setting telling us whether to display the default values on this property page
@@ -467,7 +470,6 @@ namespace VEPROMS
// for word docs, no enhanced controls should be visible:
grpLnkEnh.Visible = false;
}
if(_SectionConfig.FormatSelection != null) ppCmbxFormat.SelectedValue = _SectionConfig.FormatSelection;
_Initializing = false;
//_InitialIndex = ppCmbxFormat.SelectedIndex;
}