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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user