This commit is contained in:
2012-01-10 14:41:23 +00:00
parent feafe5958f
commit f60f838e4c
2 changed files with 19 additions and 2 deletions

View File

@@ -71,6 +71,15 @@ namespace VEPROMS
// Check for the print section num/title config item to determine whether that checkbox should
// be checked.
ppCbPrnSecNumTitle.Checked = _SectionConfig.SubSection_PH != "N";
// check if format has automated table of contents, if so, check if config flag is set that this
// section should be included.
ppCbIncTOC.Enabled = false;
if ((ii.ActiveFormat.PlantFormat.FormatData.PurchaseOptions & E_PurchaseOptions.AutoTableOfContents) == E_PurchaseOptions.AutoTableOfContents && ii.MyContent.Text.ToUpper() != "TABLE OF CONTENTS")
{
ppCbIncTOC.Enabled = true;
ppCbIncTOC.Checked = _SectionConfig.Section_TOC == "Y";
}
}
private void btnSectPropOK_Click(object sender, EventArgs e)
@@ -803,6 +812,13 @@ namespace VEPROMS
_SectionConfig.SubSection_PH = isEditable ? "Y" : "N";
}
private void ppCbIncTOC_CheckedChanged(object sender, EventArgs e)
{
bool isInToc = ppCbIncTOC.Checked;
if (!_Initializing)
_SectionConfig.Section_TOC = isInToc ? "Y" : "N";
}
//private void ppBtnDefaultPrintSize_Click(object sender, EventArgs e)
//{
// // Get the parent setting