C2024-017 Removed old (not implemented) format variables and settings from the format files and removed incomplete references to them in the C# code. Also added descriptions of the used format variables in the C# code that hooks the XML format files to the PROMS C# logic.

This commit is contained in:
2024-07-26 14:54:11 -04:00
parent 112edd1c8a
commit 7f899175d1
308 changed files with 1758 additions and 2539 deletions

View File

@@ -49,10 +49,8 @@ namespace VEPROMS
this.imageCodecInfoBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.ppLblGrphFileExtDefault = new System.Windows.Forms.Label();
this.lblGrphFileExt = new System.Windows.Forms.Label();
this.ppBtnDeftDisAutoDuplx = new DevComponents.DotNetBar.ButtonX();
this.ppBtnDefWatermark = new DevComponents.DotNetBar.ButtonX();
this.ppCmbxWatermark = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.ppLblAutoDuplexDefault = new System.Windows.Forms.Label();
this.ppLblWatermarkDefault = new System.Windows.Forms.Label();
this.ppNumUpDwnOvrdPrnPenWidth = new System.Windows.Forms.NumericUpDown();
this.label9 = new System.Windows.Forms.Label();
@@ -62,7 +60,6 @@ namespace VEPROMS
this.label11 = new System.Windows.Forms.Label();
this.ppNumUpDwnAdjPrnStartPos = new System.Windows.Forms.NumericUpDown();
this.label12 = new System.Windows.Forms.Label();
this.ppChbxDisAutoDuplex = new System.Windows.Forms.CheckBox();
this.label29 = new System.Windows.Forms.Label();
this.ppChkbxStMsgActive = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.ppRTxtStMsg = new System.Windows.Forms.RichTextBox();
@@ -434,20 +431,6 @@ namespace VEPROMS
this.lblGrphFileExt.TabIndex = 19;
this.lblGrphFileExt.Text = "Graphic File Extension";
//
// ppBtnDeftDisAutoDuplx
//
this.ppBtnDeftDisAutoDuplx.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.ppBtnDeftDisAutoDuplx.Location = new System.Drawing.Point(595, 22);
this.ppBtnDeftDisAutoDuplx.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ppBtnDeftDisAutoDuplx.Name = "ppBtnDeftDisAutoDuplx";
this.ppBtnDeftDisAutoDuplx.Size = new System.Drawing.Size(59, 25);
this.superTooltip1.SetSuperTooltip(this.ppBtnDeftDisAutoDuplx, new DevComponents.DotNetBar.SuperTooltipInfo("The Default Button", "", resources.GetString("ppBtnDeftDisAutoDuplx.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, false, new System.Drawing.Size(255, 150)));
this.ppBtnDeftDisAutoDuplx.TabIndex = 33;
this.ppBtnDeftDisAutoDuplx.Text = "Default";
this.ppBtnDeftDisAutoDuplx.ThemeAware = true;
this.ppBtnDeftDisAutoDuplx.Visible = false;
this.ppBtnDeftDisAutoDuplx.Click += new System.EventHandler(this.ppBtnDeftDisAutoDuplx_Click);
//
// ppBtnDefWatermark
//
this.ppBtnDefWatermark.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
@@ -480,20 +463,6 @@ namespace VEPROMS
this.ppCmbxWatermark.WatermarkText = "select watermark option";
this.ppCmbxWatermark.SelectedValueChanged += new System.EventHandler(this.ppCmbxWatermark_SelectedValueChanged);
//
// ppLblAutoDuplexDefault
//
this.ppLblAutoDuplexDefault.AutoSize = true;
this.ppLblAutoDuplexDefault.BackColor = System.Drawing.Color.Transparent;
this.ppLblAutoDuplexDefault.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ppLblAutoDuplexDefault.ForeColor = System.Drawing.Color.Gray;
this.ppLblAutoDuplexDefault.Location = new System.Drawing.Point(400, 46);
this.ppLblAutoDuplexDefault.Name = "ppLblAutoDuplexDefault";
this.ppLblAutoDuplexDefault.Size = new System.Drawing.Size(64, 13);
this.superTooltip1.SetSuperTooltip(this.ppLblAutoDuplexDefault, new DevComponents.DotNetBar.SuperTooltipInfo("This is the Automatic Duplex default setting", "", "Pressing the Default Button (to the right)\r\nwill reset the Automatic Duplex setti" +
"ng back\r\nto this default.\r\n", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.ppLblAutoDuplexDefault.TabIndex = 51;
this.ppLblAutoDuplexDefault.Text = "(default ON)";
//
// ppLblWatermarkDefault
//
this.ppLblWatermarkDefault.AutoSize = true;
@@ -594,22 +563,6 @@ namespace VEPROMS
this.label12.TabIndex = 6;
this.label12.Text = "Adjust Starting Position on Page (dots)";
//
// ppChbxDisAutoDuplex
//
this.ppChbxDisAutoDuplex.AutoSize = true;
this.ppChbxDisAutoDuplex.BackColor = System.Drawing.Color.Transparent;
this.ppChbxDisAutoDuplex.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.folderConfigBindingSource, "Print_DisableDuplex", true));
this.ppChbxDisAutoDuplex.Location = new System.Drawing.Point(380, 22);
this.ppChbxDisAutoDuplex.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ppChbxDisAutoDuplex.Name = "ppChbxDisAutoDuplex";
this.ppChbxDisAutoDuplex.Size = new System.Drawing.Size(199, 20);
this.superTooltip1.SetSuperTooltip(this.ppChbxDisAutoDuplex, new DevComponents.DotNetBar.SuperTooltipInfo("Disable Automatic Duplex", "", "Checking this box will turn OFF the automatic duplexing used in some formats for " +
"Foldout pages.", null, null, DevComponents.DotNetBar.eTooltipColor.System, true, false, new System.Drawing.Size(0, 0)));
this.ppChbxDisAutoDuplex.TabIndex = 32;
this.ppChbxDisAutoDuplex.Text = "Disable Automatic Duplexing";
this.ppChbxDisAutoDuplex.UseVisualStyleBackColor = false;
this.ppChbxDisAutoDuplex.CheckedChanged += new System.EventHandler(this.ppChbxDisAutoDuplex_CheckedChanged);
//
// label29
//
this.label29.AutoSize = true;
@@ -2277,10 +2230,7 @@ namespace VEPROMS
//
this.tcpOutputSettings.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.tcpOutputSettings.Controls.Add(this.groupPanel2);
this.tcpOutputSettings.Controls.Add(this.ppBtnDeftDisAutoDuplx);
this.tcpOutputSettings.Controls.Add(this.ppLblAutoDuplexDefault);
this.tcpOutputSettings.Controls.Add(this.ppBtnDefWatermark);
this.tcpOutputSettings.Controls.Add(this.ppChbxDisAutoDuplex);
this.tcpOutputSettings.Controls.Add(this.label29);
this.tcpOutputSettings.Controls.Add(this.ppCmbxWatermark);
this.tcpOutputSettings.Controls.Add(this.ppLblWatermarkDefault);
@@ -2597,7 +2547,6 @@ namespace VEPROMS
private System.Windows.Forms.Label label27;
private System.Windows.Forms.Label label30;
private System.Windows.Forms.Label label31;
private System.Windows.Forms.CheckBox ppChbxDisAutoDuplex;
private System.Windows.Forms.Label label29;
private System.Windows.Forms.BindingSource folderConfigBindingSource;
private System.Windows.Forms.Label lblGrphFileExt;
@@ -2610,7 +2559,6 @@ namespace VEPROMS
private System.Windows.Forms.Label ppLblChgBarUserMsgTwoDefault;
private System.Windows.Forms.Label ppLblChgBarUserMsgOneDefault;
private System.Windows.Forms.Label ppLblWatermarkDefault;
private System.Windows.Forms.Label ppLblAutoDuplexDefault;
private System.Windows.Forms.Label ppLblStpEditorColsDefault;
private DevComponents.DotNetBar.SuperTooltip superTooltip1;
private DevComponents.DotNetBar.Controls.ComboBoxEx ppCmbxFormat;
@@ -2630,7 +2578,6 @@ namespace VEPROMS
private DevComponents.DotNetBar.ButtonX ppBtnDefCbTxt2;
private DevComponents.DotNetBar.Controls.CheckBoxX ppCbShwDefSettings;
private DevComponents.DotNetBar.ButtonX ppBtnDefEdCols;
private DevComponents.DotNetBar.ButtonX ppBtnDeftDisAutoDuplx;
private System.Windows.Forms.FolderBrowserDialog dlgROFolder;
private DevComponents.DotNetBar.ButtonX ppBtnChgTextColors;
private DevComponents.DotNetBar.ColorPickerDropDown ppColorPickerViewModebckgnd;

View File

@@ -116,9 +116,6 @@ namespace VEPROMS
_DefaultWatermark = _FolderConfig.Print_Watermark.ToString();
SetupDefault(EnumDescConverter.GetEnumDescription(_FolderConfig.Print_Watermark), ppLblWatermarkDefault, ppCmbxWatermark);
// Get the default Disable Duplex
_DefaultDisableDuplex = _FolderConfig.Print_DisableDuplex;
ppLblAutoDuplexDefault.Text = string.Format("(Duplex {0})", (_DefaultDisableDuplex) ? "OFF" : "ON");
// Get the default Format Columns
_DefaultFormatColumns = _FolderConfig.Format_Columns.ToString();
@@ -305,24 +302,6 @@ namespace VEPROMS
ppLblGrphFileExtDefault.Visible = false;
this.lblGrphFileExt.Visible = false;
// Set the auto duplex controls based on whether the format allows this:
// Note that the controls' visibility would not set correctly using the following two lines of code. That
// is why the more explicit logic was done.
//ppChbxDisAutoDuplex.Visible = _DocVersionConfig.MyDocVersion.MyFormat.PlantFormat.FormatData.PrintData.AllowDuplex;
//ppLblAutoDuplexDefault.Visible = ppBtnDeftDisAutoDuplx.Visible = ppLblAutoDuplexDefault.Visible;
FolderInfo fi = FolderInfo.Get(_FolderConfig.MyFolder.FolderID);
if (fi.ActiveFormat.PlantFormat.FormatData.PrintData.AllowDuplex)
{
ppChbxDisAutoDuplex.Visible = true;
ppLblAutoDuplexDefault.Visible = true;
ppBtnDeftDisAutoDuplx.Visible = true;
}
else
{
ppChbxDisAutoDuplex.Visible = false;
ppLblAutoDuplexDefault.Visible = false;
ppBtnDeftDisAutoDuplx.Visible = false;
}
// HIDE the text box that allows the user to change the Procedure Panel's heading (title) on the panel bar
ppRTxtHeading.Visible = false;
lblHeading.Visible = false;
@@ -664,20 +643,6 @@ namespace VEPROMS
//tcpOutputSettings.Focus();
}
/// <summary>
/// Checkbox of the Disable Automatic Duplex changed.
/// </summary>
/// <param name="sender">object</param>
/// <param name="e">EventArgs</param>
private void ppChbxDisAutoDuplex_CheckedChanged(object sender, EventArgs e)
{
if (!_Initializing)
{
_FolderConfig.Print_DisableDuplex = ppChbxDisAutoDuplex.Checked;
ppBtnDeftDisAutoDuplx.Visible = (!_FolderConfig.Name.Equals("VEPROMS")) && (_DefaultDisableDuplex != ppChbxDisAutoDuplex.Checked);
ppLblAutoDuplexDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDeftDisAutoDuplx.Visible;
}
}
#endregion
@@ -1174,7 +1139,6 @@ namespace VEPROMS
ppLblChgBarUserMsgOneDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefCbTxt1.Visible;
ppLblChgBarUserMsgTwoDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefCbTxt2.Visible;
ppLblAutoDuplexDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDeftDisAutoDuplx.Visible;
ppLblStpEditorColsDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefEdCols.Visible;
ppLblGrphFileExtDefault.Visible = (ppCbShwDefSettings.Checked || _IsVepromsNode) && ppBtnDefaultGrphFileExt.Visible;
ppLblWatermarkDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefWatermark.Visible;
@@ -1300,15 +1264,6 @@ namespace VEPROMS
}
}
private void ppBtnDeftDisAutoDuplx_Click(object sender, EventArgs e)
{
ppChbxDisAutoDuplex.Checked = _DefaultDisableDuplex;
_FolderConfig.Print_DisableDuplex = ppChbxDisAutoDuplex.Checked;
ppBtnDeftDisAutoDuplx.Visible = false;
ppLblAutoDuplexDefault.Visible = false;
//tcpOutputSettings.Focus();
}
private void frmFolderProperties_Shown(object sender, EventArgs e)
{
ppRTxtName.Focus();

View File

@@ -74,9 +74,6 @@ namespace VEPROMS
this.label41 = new System.Windows.Forms.Label();
this.ppNumUpDwnAdjPrnStartPos = new System.Windows.Forms.NumericUpDown();
this.label42 = new System.Windows.Forms.Label();
this.ppBtnDeftDisAutoDuplx = new DevComponents.DotNetBar.ButtonX();
this.ppLblAutoDuplexDefault = new System.Windows.Forms.Label();
this.ppChbxDisAutoDuplex = new System.Windows.Forms.CheckBox();
this.ppBtnDefWatermark = new DevComponents.DotNetBar.ButtonX();
this.ppCmbxWatermark = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.ppLblWatermarkDefault = new System.Windows.Forms.Label();
@@ -712,52 +709,6 @@ namespace VEPROMS
this.label42.TabIndex = 6;
this.label42.Text = "Adjust Starting Position on Page (dots)";
//
// ppBtnDeftDisAutoDuplx
//
this.ppBtnDeftDisAutoDuplx.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.ppBtnDeftDisAutoDuplx.Location = new System.Drawing.Point(592, 30);
this.ppBtnDeftDisAutoDuplx.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ppBtnDeftDisAutoDuplx.Name = "ppBtnDeftDisAutoDuplx";
this.ppBtnDeftDisAutoDuplx.Size = new System.Drawing.Size(59, 25);
this.superTooltip1.SetSuperTooltip(this.ppBtnDeftDisAutoDuplx, new DevComponents.DotNetBar.SuperTooltipInfo("The Default Button", "", resources.GetString("ppBtnDeftDisAutoDuplx.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, false, new System.Drawing.Size(255, 150)));
this.ppBtnDeftDisAutoDuplx.TabIndex = 63;
this.ppBtnDeftDisAutoDuplx.TabStop = false;
this.ppBtnDeftDisAutoDuplx.Text = "Default";
this.ppBtnDeftDisAutoDuplx.ThemeAware = true;
this.ppBtnDeftDisAutoDuplx.Visible = false;
this.ppBtnDeftDisAutoDuplx.Click += new System.EventHandler(this.ppBtnDeftDisAutoDuplx_Click);
//
// ppLblAutoDuplexDefault
//
this.ppLblAutoDuplexDefault.AutoSize = true;
this.ppLblAutoDuplexDefault.BackColor = System.Drawing.Color.Transparent;
this.ppLblAutoDuplexDefault.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ppLblAutoDuplexDefault.ForeColor = System.Drawing.Color.Gray;
this.ppLblAutoDuplexDefault.Location = new System.Drawing.Point(397, 54);
this.ppLblAutoDuplexDefault.Name = "ppLblAutoDuplexDefault";
this.ppLblAutoDuplexDefault.Size = new System.Drawing.Size(86, 17);
this.superTooltip1.SetSuperTooltip(this.ppLblAutoDuplexDefault, new DevComponents.DotNetBar.SuperTooltipInfo("This is the Automatic Duplex default setting", "", "Pressing the Default Button (to the right)\r\nwill reset the Automatic Duplex setti" +
"ng back\r\nto this default.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, false, new System.Drawing.Size(0, 0)));
this.ppLblAutoDuplexDefault.TabIndex = 62;
this.ppLblAutoDuplexDefault.Text = "(default ON)";
//
// ppChbxDisAutoDuplex
//
this.ppChbxDisAutoDuplex.AutoSize = true;
this.ppChbxDisAutoDuplex.BackColor = System.Drawing.Color.Transparent;
this.ppChbxDisAutoDuplex.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.procedureConfigBindingSource, "Print_DisableDuplex", true));
this.ppChbxDisAutoDuplex.Location = new System.Drawing.Point(377, 30);
this.ppChbxDisAutoDuplex.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ppChbxDisAutoDuplex.Name = "ppChbxDisAutoDuplex";
this.ppChbxDisAutoDuplex.Size = new System.Drawing.Size(209, 21);
this.superTooltip1.SetSuperTooltip(this.ppChbxDisAutoDuplex, new DevComponents.DotNetBar.SuperTooltipInfo("Disable Automatic Duplex", "", "Checking this box will turn OFF the automatic duplexing used in some formats for " +
"Foldout pages.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, false, new System.Drawing.Size(0, 0)));
this.ppChbxDisAutoDuplex.TabIndex = 61;
this.ppChbxDisAutoDuplex.TabStop = false;
this.ppChbxDisAutoDuplex.Text = "Disable Automatic Duplexing";
this.ppChbxDisAutoDuplex.UseVisualStyleBackColor = false;
this.ppChbxDisAutoDuplex.CheckedChanged += new System.EventHandler(this.ppChbxDisAutoDuplex_CheckedChanged);
//
// ppBtnDefWatermark
//
this.ppBtnDefWatermark.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
@@ -1709,10 +1660,7 @@ namespace VEPROMS
// tcpOutputSettings
//
this.tcpOutputSettings.Controls.Add(this.ppGrpbxPrnAdj);
this.tcpOutputSettings.Controls.Add(this.ppBtnDeftDisAutoDuplx);
this.tcpOutputSettings.Controls.Add(this.label18);
this.tcpOutputSettings.Controls.Add(this.ppLblAutoDuplexDefault);
this.tcpOutputSettings.Controls.Add(this.ppChbxDisAutoDuplex);
this.tcpOutputSettings.Controls.Add(this.ppLblWatermarkDefault);
this.tcpOutputSettings.Controls.Add(this.ppBtnDefWatermark);
this.tcpOutputSettings.Controls.Add(this.ppCmbxWatermark);
@@ -2056,9 +2004,6 @@ namespace VEPROMS
private DevComponents.DotNetBar.Controls.ComboBoxEx ppCmbxWatermark;
private System.Windows.Forms.Label ppLblWatermarkDefault;
private System.Windows.Forms.Label label18;
private DevComponents.DotNetBar.ButtonX ppBtnDeftDisAutoDuplx;
private System.Windows.Forms.Label ppLblAutoDuplexDefault;
private System.Windows.Forms.CheckBox ppChbxDisAutoDuplex;
private System.Windows.Forms.NumericUpDown ppNumUpDwnOvrdPrnPenWidth;
private System.Windows.Forms.Label label39;
private System.Windows.Forms.Label label40;

View File

@@ -168,9 +168,6 @@ namespace VEPROMS
_DefaultFormatColumns = _ProcedureConfig.Format_Columns.ToString();
SetupDefault(EnumDescConverter.GetEnumDescription(_ProcedureConfig.Format_Columns), ppLblStpEditorColsDefault, ppCmbxStpEditorCols);
// Get the default Disable Duplex
_DefaultDisableDuplex = _ProcedureConfig.Print_DisableDuplex;
ppLblAutoDuplexDefault.Text = string.Format("(Duplex {0})", (_DefaultDisableDuplex) ? "OFF" : "ON");
_ProcedureConfig.ParentLookup = false;
@@ -581,7 +578,6 @@ namespace VEPROMS
ppLblChgBarTxtTypeDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefCbTxtTyp.Visible;
ppLblChgBarUserMsgOneDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefCbTxt1.Visible;
ppLblChgBarUserMsgTwoDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefCbTxt2.Visible;
ppLblAutoDuplexDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDeftDisAutoDuplx.Visible;
}
/// <summary>
@@ -741,14 +737,6 @@ namespace VEPROMS
//tcpOutputSettings.Focus();
}
private void ppBtnDeftDisAutoDuplx_Click(object sender, EventArgs e)
{
ppChbxDisAutoDuplex.Checked = _DefaultDisableDuplex;
_ProcedureConfig.Print_DisableDuplex = ppChbxDisAutoDuplex.Checked;
ppBtnDeftDisAutoDuplx.Visible = false;
ppLblAutoDuplexDefault.Visible = false;
//tcpOutputSettings.Focus();
}
private void ppTxbxChangeBarUserMsgOne_TextChanged(object sender, EventArgs e)
{
@@ -764,17 +752,6 @@ namespace VEPROMS
//tcpOutputSettings.Focus();
}
private void ppChbxDisAutoDuplex_CheckedChanged(object sender, EventArgs e)
{
if (!_Initializing)
{
_ProcedureConfig.Print_DisableDuplex = ppChbxDisAutoDuplex.Checked;
ppBtnDeftDisAutoDuplx.Visible = _DefaultDisableDuplex != ppChbxDisAutoDuplex.Checked;
ppLblAutoDuplexDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDeftDisAutoDuplx.Visible;
//tcpOutputSettings.Focus();
}
}
private void frmProcedureProperties_Shown(object sender, EventArgs e)
{

View File

@@ -76,14 +76,11 @@ namespace VEPROMS
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.ppBtnPDFLoc = new DevComponents.DotNetBar.ButtonX();
this.ppBtnDeftDisAutoDuplx = new DevComponents.DotNetBar.ButtonX();
this.ppBtnDefWatermark = new DevComponents.DotNetBar.ButtonX();
this.ppCmbxWatermark = new DevComponents.DotNetBar.Controls.ComboBoxEx();
this.ppLblWatermarkDefault = new System.Windows.Forms.Label();
this.ppTxtBxPDFLoc = new System.Windows.Forms.TextBox();
this.label18 = new System.Windows.Forms.Label();
this.ppLblAutoDuplexDefault = new System.Windows.Forms.Label();
this.ppChbxDisAutoDuplex = new System.Windows.Forms.CheckBox();
this.label17 = new System.Windows.Forms.Label();
this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip();
this.ppCbShwDefSettings = new DevComponents.DotNetBar.Controls.CheckBoxX();
@@ -806,19 +803,6 @@ namespace VEPROMS
this.ppBtnPDFLoc.TabIndex = 31;
this.ppBtnPDFLoc.Click += new System.EventHandler(this.ppBtnPDFLoc_Click);
//
// ppBtnDeftDisAutoDuplx
//
this.ppBtnDeftDisAutoDuplx.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.ppBtnDeftDisAutoDuplx.Location = new System.Drawing.Point(434, 60);
this.ppBtnDeftDisAutoDuplx.Margin = new System.Windows.Forms.Padding(2);
this.ppBtnDeftDisAutoDuplx.Name = "ppBtnDeftDisAutoDuplx";
this.ppBtnDeftDisAutoDuplx.Size = new System.Drawing.Size(44, 20);
this.superTooltip1.SetSuperTooltip(this.ppBtnDeftDisAutoDuplx, new DevComponents.DotNetBar.SuperTooltipInfo("The Default Button", "", resources.GetString("ppBtnDeftDisAutoDuplx.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, false, new System.Drawing.Size(255, 150)));
this.ppBtnDeftDisAutoDuplx.TabIndex = 35;
this.ppBtnDeftDisAutoDuplx.Text = "Default";
this.ppBtnDeftDisAutoDuplx.ThemeAware = true;
this.ppBtnDeftDisAutoDuplx.Click += new System.EventHandler(this.ppBtnDeftDisAutoDuplx_Click);
//
// ppBtnDefWatermark
//
this.ppBtnDefWatermark.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
@@ -887,37 +871,6 @@ namespace VEPROMS
this.label18.TabIndex = 54;
this.label18.Text = "PDF Location";
//
// ppLblAutoDuplexDefault
//
this.ppLblAutoDuplexDefault.AutoSize = true;
this.ppLblAutoDuplexDefault.BackColor = System.Drawing.Color.Transparent;
this.ppLblAutoDuplexDefault.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ppLblAutoDuplexDefault.ForeColor = System.Drawing.Color.Gray;
this.ppLblAutoDuplexDefault.Location = new System.Drawing.Point(286, 80);
this.ppLblAutoDuplexDefault.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.ppLblAutoDuplexDefault.Name = "ppLblAutoDuplexDefault";
this.ppLblAutoDuplexDefault.Size = new System.Drawing.Size(64, 13);
this.superTooltip1.SetSuperTooltip(this.ppLblAutoDuplexDefault, new DevComponents.DotNetBar.SuperTooltipInfo("This is the Automatic Duplex default setting", "", "Pressing the Default Button (to the right)\r\nwill reset the Automatic Duplex setti" +
"ng back\r\nto this default.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, false, new System.Drawing.Size(0, 0)));
this.ppLblAutoDuplexDefault.TabIndex = 53;
this.ppLblAutoDuplexDefault.Text = "(default ON)";
//
// ppChbxDisAutoDuplex
//
this.ppChbxDisAutoDuplex.AutoSize = true;
this.ppChbxDisAutoDuplex.BackColor = System.Drawing.Color.Transparent;
this.ppChbxDisAutoDuplex.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_DisableDuplex", true));
this.ppChbxDisAutoDuplex.Location = new System.Drawing.Point(272, 60);
this.ppChbxDisAutoDuplex.Margin = new System.Windows.Forms.Padding(2);
this.ppChbxDisAutoDuplex.Name = "ppChbxDisAutoDuplex";
this.ppChbxDisAutoDuplex.Size = new System.Drawing.Size(161, 17);
this.superTooltip1.SetSuperTooltip(this.ppChbxDisAutoDuplex, new DevComponents.DotNetBar.SuperTooltipInfo("Disable Automatic Duplex", "", "Checking this box will turn OFF the automatic duplexing used in some formats for " +
"Foldout pages.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, false, new System.Drawing.Size(0, 0)));
this.ppChbxDisAutoDuplex.TabIndex = 34;
this.ppChbxDisAutoDuplex.Text = "Disable Automatic Duplexing";
this.ppChbxDisAutoDuplex.UseVisualStyleBackColor = false;
this.ppChbxDisAutoDuplex.CheckedChanged += new System.EventHandler(this.ppChbxDisAutoDuplex_CheckedChanged);
//
// label17
//
this.label17.AutoSize = true;
@@ -2419,10 +2372,7 @@ namespace VEPROMS
this.tcpOutputSettings.Controls.Add(this.ppBtnPDFLoc);
this.tcpOutputSettings.Controls.Add(this.ppChbxAlwaysOvrWrtPDF);
this.tcpOutputSettings.Controls.Add(this.label17);
this.tcpOutputSettings.Controls.Add(this.ppBtnDeftDisAutoDuplx);
this.tcpOutputSettings.Controls.Add(this.ppBtnDefWatermark);
this.tcpOutputSettings.Controls.Add(this.ppChbxDisAutoDuplex);
this.tcpOutputSettings.Controls.Add(this.ppLblAutoDuplexDefault);
this.tcpOutputSettings.Controls.Add(this.ppCmbxWatermark);
this.tcpOutputSettings.Controls.Add(this.ppLblWatermarkDefault);
this.tcpOutputSettings.DisabledBackColor = System.Drawing.Color.Empty;
@@ -2905,8 +2855,6 @@ namespace VEPROMS
private System.Windows.Forms.Label label17;
private System.Windows.Forms.TextBox ppTxtBxPDFLoc;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.Label ppLblAutoDuplexDefault;
private System.Windows.Forms.CheckBox ppChbxDisAutoDuplex;
private System.Windows.Forms.Label ppLblFormatDefault;
private DevComponents.DotNetBar.SuperTooltip superTooltip1;
private System.Windows.Forms.Label ppLblWatermarkDefault;
@@ -2928,7 +2876,6 @@ namespace VEPROMS
private System.Windows.Forms.Label ppLblDefSettingsInfo;
private DevComponents.DotNetBar.Controls.CheckBoxX ppCbShwDefSettings;
private DevComponents.DotNetBar.ButtonX ppBtnDefWatermark;
private DevComponents.DotNetBar.ButtonX ppBtnDeftDisAutoDuplx;
private DevComponents.DotNetBar.ButtonX ppBtnPDFLoc;
private DevComponents.DotNetBar.ButtonX ppBtnDefaultChgBar;
private DevComponents.DotNetBar.ButtonX ppBtnDefCbTxt1;

View File

@@ -275,23 +275,6 @@ namespace VEPROMS
// only allow update if association, and the RO update was not done and/or not completed
ppBtnUpRoVals.Enabled = !_DocVersionConfig.MyDocVersion.ROfstLastCompleted || _DocVersionConfig.MyDocVersion.NewerRoFst;
// Set the auto duplex controls based on whether the format allows this:
// Note that the controls' visibility would not set correctly using the following two lines of code. That
// is why the more explicit logic was done.
//ppChbxDisAutoDuplex.Visible = _DocVersionConfig.MyDocVersion.MyFormat.PlantFormat.FormatData.PrintData.AllowDuplex;
//ppLblAutoDuplexDefault.Visible = ppBtnDeftDisAutoDuplx.Visible = ppLblAutoDuplexDefault.Visible;
if (_DocVersionConfig.MyDocVersion.MyFormat != null && _DocVersionConfig.MyDocVersion.MyFormat.PlantFormat.FormatData.PrintData.AllowDuplex)
{
ppChbxDisAutoDuplex.Visible = true;
ppLblAutoDuplexDefault.Visible = true;
ppBtnDeftDisAutoDuplx.Visible = true;
}
else
{
ppChbxDisAutoDuplex.Visible = false;
ppLblAutoDuplexDefault.Visible = false;
ppBtnDeftDisAutoDuplx.Visible = false;
}
//add new applicability stuff
if (_DocVersionConfig.Unit_Count > 0)
@@ -886,9 +869,6 @@ namespace VEPROMS
_DefaultWatermark = _DocVersionConfig.Print_Watermark.ToString();
SetupDefault(EnumDescConverter.GetEnumDescription(_DocVersionConfig.Print_Watermark), ppLblWatermarkDefault, ppCmbxWatermark);
// Get the default Disable Duplex
_DefaultDisableDuplex = _DocVersionConfig.Print_DisableDuplex;
ppLblAutoDuplexDefault.Text = string.Format("(Duplex {0})", (_DefaultDisableDuplex) ? "OFF" : "ON");
_DocVersionConfig.ParentLookup = false;
}
@@ -1094,13 +1074,6 @@ namespace VEPROMS
}
}
private void ppBtnDeftDisAutoDuplx_Click(object sender, EventArgs e)
{
ppChbxDisAutoDuplex.Checked = _DefaultDisableDuplex;
_DocVersionConfig.Print_DisableDuplex = ppChbxDisAutoDuplex.Checked;
ppBtnDeftDisAutoDuplx.Visible = false;
ppLblAutoDuplexDefault.Visible = false;
}
private void frmVersionsProperties_Shown(object sender, EventArgs e)
{
@@ -1636,21 +1609,6 @@ namespace VEPROMS
ppCmbxFormat.SelectedIndex = -1;
}
/// <summary>
/// If checked, will disable automatic duplexing (ex Foldout Pages)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void ppChbxDisAutoDuplex_CheckedChanged(object sender, EventArgs e)
{
if (!_Initializing)
{
_DocVersionConfig.Print_DisableDuplex = ppChbxDisAutoDuplex.Checked;
ppBtnDeftDisAutoDuplx.Visible = (_DefaultDisableDuplex != ppChbxDisAutoDuplex.Checked);
ppLblAutoDuplexDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDeftDisAutoDuplx.Visible;
}
}
/// <summary>
/// Enable or disable the user specified change bar options base on the type
@@ -1834,7 +1792,6 @@ namespace VEPROMS
ppLblChgBarTxtTypeDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefCbTxtTyp.Visible;
//ppLblPaginationDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefPagination.Visible;
ppLblWatermarkDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDefWatermark.Visible;
ppLblAutoDuplexDefault.Visible = ppCbShwDefSettings.Checked && ppBtnDeftDisAutoDuplx.Visible;
}
/// <summary>