set the Step Editor Section and Word Section radio button based on the content of the section.

This commit is contained in:
John Jenko 2013-08-01 18:59:11 +00:00
parent b6faa98f0d
commit 75991ef8e3

View File

@ -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();