Fixed bug where if you created a new procedure but did not open the format tab on the property page, the first format (in the list of formats) would be assigned to the new procedure.
This commit is contained in:
@@ -108,7 +108,6 @@ namespace VEPROMS
|
||||
// Get the default format name
|
||||
_DefaultFormatName = _ProcedureConfig.DefaultFormatSelection;
|
||||
SetupDefault(_DefaultFormatName, ppLblFormatDefault, ppCmbxFormat);
|
||||
|
||||
// Get the default Change Bar Type
|
||||
_DefaultChgBarType = _ProcedureConfig.Print_ChangeBar.ToString();
|
||||
SetupDefault(EnumDescConverter.GetEnumDescription(_ProcedureConfig.Print_ChangeBar), ppLblChangeBarTypeDefault, ppCmbxChangeBarType);
|
||||
@@ -181,6 +180,10 @@ namespace VEPROMS
|
||||
// Get the default values for the property page information
|
||||
FindDefaultValues();
|
||||
|
||||
// if we are creating a new procedure, initially set the format to the default format
|
||||
if (_ProcedureConfig.CreatingNew)// .FormatSelection == null)
|
||||
ppCmbxFormat.SelectedValue = _ProcedureConfig.DefaultFormatSelection;
|
||||
|
||||
// Assign the data sources to the combo boxes
|
||||
ppCmbxChgBarPos.DataSource = EnumDetail<PrintChangeBarLoc>.Details();
|
||||
ppCmbxChgBarPos.DisplayMember = "Description";
|
||||
|
Reference in New Issue
Block a user