B2012-365 Fixed the default get of the Auto Indent option to return No if it is not set in the config

B2012-365  Fixed, the Auto Indent option enabling
B2012-369 Fixed the lack of displaying a new subsection, after entering a new High level step
This commit is contained in:
2012-12-11 19:41:51 +00:00
parent 74e11c4025
commit d42972a389
3 changed files with 16 additions and 4 deletions

View File

@@ -270,7 +270,7 @@ namespace VEPROMS
// set the section level configs:
ppCbEditableData.Checked = (_SectionConfig.SubSection_Edit == "Y");
ppCbAutoIndent.Checked = (_SectionConfig.SubSection_AutoIndent == "Y");
ppCbAutoIndent.Checked = (pf.FormatData.SectData.UseMetaSections && _SectionConfig.SubSection_AutoIndent == "Y");
// if this section has subsections:
// show the editable data check box. If showing 'editable data', the procedures steps are
@@ -278,7 +278,8 @@ namespace VEPROMS
// 'editable data', the steps are not shown in editor or print.
// show the automatic indent checkbox.
ppCbEditableData.Enabled = _SectionConfig.MySection.MySectionInfo.Sections != null && _SectionConfig.MySection.MySectionInfo.Sections.Count > 0;
ppCbAutoIndent.Enabled = _SectionConfig.MySection.MySectionInfo.Sections != null && _SectionConfig.MySection.MySectionInfo.Sections.Count > 0;
//ppCbAutoIndent.Enabled = _SectionConfig.MySection.MySectionInfo.Sections != null && _SectionConfig.MySection.MySectionInfo.Sections.Count > 0;
ppCbAutoIndent.Enabled = pf.FormatData.SectData.UseMetaSections;
// Check for the print section num/title config item to determine whether that checkbox should
// be checked.