This commit is contained in:
@@ -224,6 +224,24 @@ namespace VEPROMS
|
||||
btnRoDbProperties.Visible = tbRoDb.Visible = !(_DocVersionConfig.MyDocVersion.DocVersionAssociationCount == 0);
|
||||
ppBtnUpRoVals.Enabled = !(_DocVersionConfig.MyDocVersion.DocVersionAssociationCount == 0); // only allow update if association
|
||||
|
||||
// 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.PlantFormat.FormatData.PrintData.AllowDuplex)
|
||||
{
|
||||
ppChbxDisAutoDuplex.Visible = true;
|
||||
ppLblAutoDuplexDefault.Visible = true;
|
||||
ppBtnDeftDisAutoDuplx.Visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ppChbxDisAutoDuplex.Visible = false;
|
||||
ppLblAutoDuplexDefault.Visible = false;
|
||||
ppBtnDeftDisAutoDuplx.Visible = false;
|
||||
}
|
||||
|
||||
_Initializing = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user