From b4aaf5e0c90b06351a397b08c320f58ef0ac6aa9 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 29 Jan 2016 17:29:37 +0000 Subject: [PATCH] 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. --- PROMS/VEPROMS User Interface/frmProcedureProperties.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS User Interface/frmProcedureProperties.cs b/PROMS/VEPROMS User Interface/frmProcedureProperties.cs index ddc1c7d3..d30ad056 100644 --- a/PROMS/VEPROMS User Interface/frmProcedureProperties.cs +++ b/PROMS/VEPROMS User Interface/frmProcedureProperties.cs @@ -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.Details(); ppCmbxChgBarPos.DisplayMember = "Description";