This commit is contained in:
parent
feafe5958f
commit
f60f838e4c
@ -745,9 +745,9 @@ namespace VEPROMS
|
|||||||
//
|
//
|
||||||
this.tcSectionProp.BackColor = System.Drawing.Color.Transparent;
|
this.tcSectionProp.BackColor = System.Drawing.Color.Transparent;
|
||||||
this.tcSectionProp.CanReorderTabs = true;
|
this.tcSectionProp.CanReorderTabs = true;
|
||||||
|
this.tcSectionProp.Controls.Add(this.tcpAutomation);
|
||||||
this.tcSectionProp.Controls.Add(this.tcpGeneral);
|
this.tcSectionProp.Controls.Add(this.tcpGeneral);
|
||||||
this.tcSectionProp.Controls.Add(this.tcpFormat);
|
this.tcSectionProp.Controls.Add(this.tcpFormat);
|
||||||
this.tcSectionProp.Controls.Add(this.tcpAutomation);
|
|
||||||
this.tcSectionProp.Controls.Add(this.tcpLibDoc);
|
this.tcSectionProp.Controls.Add(this.tcpLibDoc);
|
||||||
this.tcSectionProp.Controls.Add(this.tabControlPanel4);
|
this.tcSectionProp.Controls.Add(this.tabControlPanel4);
|
||||||
this.tcSectionProp.Location = new System.Drawing.Point(274, 10);
|
this.tcSectionProp.Location = new System.Drawing.Point(274, 10);
|
||||||
@ -1079,6 +1079,7 @@ namespace VEPROMS
|
|||||||
this.ppCbIncTOC.TabIndex = 51;
|
this.ppCbIncTOC.TabIndex = 51;
|
||||||
this.ppCbIncTOC.Text = "Include on Table Of Contents";
|
this.ppCbIncTOC.Text = "Include on Table Of Contents";
|
||||||
this.ppCbIncTOC.UseVisualStyleBackColor = false;
|
this.ppCbIncTOC.UseVisualStyleBackColor = false;
|
||||||
|
this.ppCbIncTOC.CheckedChanged += new System.EventHandler(this.ppCbIncTOC_CheckedChanged);
|
||||||
//
|
//
|
||||||
// tiAutomation
|
// tiAutomation
|
||||||
//
|
//
|
||||||
@ -1148,7 +1149,7 @@ namespace VEPROMS
|
|||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.AutoSize = true;
|
this.AutoSize = true;
|
||||||
this.CaptionFont = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
this.CaptionFont = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||||
this.ClientSize = new System.Drawing.Size(950, 459);
|
this.ClientSize = new System.Drawing.Size(946, 455);
|
||||||
this.ControlBox = false;
|
this.ControlBox = false;
|
||||||
this.Controls.Add(this.tcSectionProp);
|
this.Controls.Add(this.tcSectionProp);
|
||||||
this.Controls.Add(this.panSectBtns);
|
this.Controls.Add(this.panSectBtns);
|
||||||
|
@ -71,6 +71,15 @@ namespace VEPROMS
|
|||||||
// Check for the print section num/title config item to determine whether that checkbox should
|
// Check for the print section num/title config item to determine whether that checkbox should
|
||||||
// be checked.
|
// be checked.
|
||||||
ppCbPrnSecNumTitle.Checked = _SectionConfig.SubSection_PH != "N";
|
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)
|
private void btnSectPropOK_Click(object sender, EventArgs e)
|
||||||
@ -803,6 +812,13 @@ namespace VEPROMS
|
|||||||
_SectionConfig.SubSection_PH = isEditable ? "Y" : "N";
|
_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)
|
//private void ppBtnDefaultPrintSize_Click(object sender, EventArgs e)
|
||||||
//{
|
//{
|
||||||
// // Get the parent setting
|
// // Get the parent setting
|
||||||
|
Loading…
x
Reference in New Issue
Block a user