set the Step Editor Section and Word Section radio button based on the content of the section.
This commit is contained in:
parent
b6faa98f0d
commit
75991ef8e3
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user