From 75991ef8e343884f22f361d775a34db2cc64697d Mon Sep 17 00:00:00 2001 From: John Date: Thu, 1 Aug 2013 18:59:11 +0000 Subject: [PATCH] set the Step Editor Section and Word Section radio button based on the content of the section. --- .../frmSectionProperties.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/PROMS/VEPROMS User Interface/frmSectionProperties.cs b/PROMS/VEPROMS User Interface/frmSectionProperties.cs index b6279648..a736bf26 100644 --- a/PROMS/VEPROMS User Interface/frmSectionProperties.cs +++ b/PROMS/VEPROMS User Interface/frmSectionProperties.cs @@ -256,14 +256,17 @@ namespace VEPROMS // check type of section from document styles to determine if the stepsection checkbox should // be checked. - int secindx = (int)_SectionConfig.SectionType; - // find the index for the document style to determine whether this is a step or word section. + //int secindx = (int)_SectionConfig.SectionType; + //// find the index for the document style to determine whether this is a step or word section. PlantFormat pf = _SectionConfig.MyFormat != null ? _SectionConfig.MyFormat.PlantFormat : _SectionConfig.MyDefaultFormat.PlantFormat; - for (int i = 0; i < pf.DocStyles.DocStyleList.Count; i++) - { - if (pf.DocStyles.DocStyleList[i].Index == secindx) - rbStepSect.Checked = pf.DocStyles.DocStyleList[i].IsStepSection; - } + //for (int i = 0; i < pf.DocStyles.DocStyleList.Count; i++) + //{ + // if (pf.DocStyles.DocStyleList[i].Index == secindx) + // rbStepSect.Checked = pf.DocStyles.DocStyleList[i].IsStepSection; _SectionConfig.MySection. + //} + + // set the StepSect radio button based on _isStepSection to ensure the proper section types are available + rbStepSect.Checked = _isStepSection; // set up some of the format tab: SetupPpCmbxSectionType(); ShowAvailableOptionsForSectionType();