Fixed initialization of the format dropdown list
This commit is contained in:
parent
c100349dcb
commit
f846cd5073
@ -150,6 +150,10 @@ namespace VEPROMS
|
|||||||
ppCmbxFormat.DisplayMember = "FullName";
|
ppCmbxFormat.DisplayMember = "FullName";
|
||||||
ppCmbxFormat.ValueMember = "FullName";
|
ppCmbxFormat.ValueMember = "FullName";
|
||||||
ppCmbxFormat.DataSource = FormatInfoList.SortedFormatInfoList;
|
ppCmbxFormat.DataSource = FormatInfoList.SortedFormatInfoList;
|
||||||
|
if (_FolderConfig.FormatSelection != null)
|
||||||
|
ppCmbxFormat.SelectedValue = _FolderConfig.FormatSelection;
|
||||||
|
else
|
||||||
|
ppCmbxFormat.SelectedIndex = -1;
|
||||||
// Get the saved settings for this user
|
// Get the saved settings for this user
|
||||||
//
|
//
|
||||||
// This setting tells us if we should display the default values on this property page
|
// This setting tells us if we should display the default values on this property page
|
||||||
|
@ -161,6 +161,10 @@ namespace VEPROMS
|
|||||||
ppCmbxFormat.DisplayMember = "FullName";
|
ppCmbxFormat.DisplayMember = "FullName";
|
||||||
ppCmbxFormat.ValueMember = "FullName";
|
ppCmbxFormat.ValueMember = "FullName";
|
||||||
ppCmbxFormat.DataSource = FormatInfoList.SortedFormatInfoList;
|
ppCmbxFormat.DataSource = FormatInfoList.SortedFormatInfoList;
|
||||||
|
if (_ProcedureConfig.FormatSelection != null)
|
||||||
|
ppCmbxFormat.SelectedValue = _ProcedureConfig.FormatSelection;
|
||||||
|
else
|
||||||
|
ppCmbxFormat.SelectedIndex = -1;
|
||||||
|
|
||||||
// Get the saved settings for this user
|
// Get the saved settings for this user
|
||||||
//
|
//
|
||||||
@ -221,6 +225,7 @@ namespace VEPROMS
|
|||||||
if (_ProcedureConfig.CreatingNew && dvc != null && dvc.MyEnhancedDocuments != null && dvc.MyEnhancedDocuments.Count > 0 && dvc.MyEnhancedDocuments[0].Type != 0)
|
if (_ProcedureConfig.CreatingNew && dvc != null && dvc.MyEnhancedDocuments != null && dvc.MyEnhancedDocuments.Count > 0 && dvc.MyEnhancedDocuments[0].Type != 0)
|
||||||
cbEnhanced.Visible = true;
|
cbEnhanced.Visible = true;
|
||||||
_Initializing = false;
|
_Initializing = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#region General tab
|
#region General tab
|
||||||
|
@ -277,7 +277,10 @@ namespace VEPROMS
|
|||||||
ppCmbxFormat.DisplayMember = "FullName";
|
ppCmbxFormat.DisplayMember = "FullName";
|
||||||
ppCmbxFormat.ValueMember = "FullName";
|
ppCmbxFormat.ValueMember = "FullName";
|
||||||
ppCmbxFormat.DataSource = FormatInfoList.SortedFormatInfoList;
|
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 the saved settings for this user
|
||||||
//
|
//
|
||||||
// Get setting telling us whether to display the default values on this property page
|
// 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:
|
// for word docs, no enhanced controls should be visible:
|
||||||
grpLnkEnh.Visible = false;
|
grpLnkEnh.Visible = false;
|
||||||
}
|
}
|
||||||
if(_SectionConfig.FormatSelection != null) ppCmbxFormat.SelectedValue = _SectionConfig.FormatSelection;
|
|
||||||
_Initializing = false;
|
_Initializing = false;
|
||||||
//_InitialIndex = ppCmbxFormat.SelectedIndex;
|
//_InitialIndex = ppCmbxFormat.SelectedIndex;
|
||||||
}
|
}
|
||||||
|
@ -271,6 +271,10 @@ namespace VEPROMS
|
|||||||
ppCmbxFormat.DisplayMember = "FullName";
|
ppCmbxFormat.DisplayMember = "FullName";
|
||||||
ppCmbxFormat.ValueMember = "FullName";
|
ppCmbxFormat.ValueMember = "FullName";
|
||||||
ppCmbxFormat.DataSource = FormatInfoList.SortedFormatInfoList;
|
ppCmbxFormat.DataSource = FormatInfoList.SortedFormatInfoList;
|
||||||
|
if (_DocVersionConfig.FormatSelection != null)
|
||||||
|
ppCmbxFormat.SelectedValue = _DocVersionConfig.FormatSelection;
|
||||||
|
else
|
||||||
|
ppCmbxFormat.SelectedIndex = -1;
|
||||||
|
|
||||||
// Get the saved settings for this user
|
// Get the saved settings for this user
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user