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:
@@ -545,44 +545,8 @@ namespace VEPROMS.CSLA.Library
|
||||
OnPropertyChanged("Print_Watermark");
|
||||
}
|
||||
}
|
||||
[Category("Print Settings")]
|
||||
[DisplayName("Disable Automatic Duplexing")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Disable Duplex Printing")]
|
||||
public bool Print_DisableDuplex
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["PrintSettings", "disableduplex"];
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("PrintSettings", "disableduplex"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
s = "false";// default to volian default
|
||||
|
||||
return bool.Parse(s);
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("PrintSettings", "disableduplex"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "false";
|
||||
|
||||
if (parval.Equals(value.ToString()))
|
||||
_Xp["PrintSettings", "disableduplex"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["PrintSettings", "disableduplex"] = value.ToString(); // save selected value
|
||||
|
||||
OnPropertyChanged("Print_DisableDuplex");
|
||||
}
|
||||
}
|
||||
// C2019-004: Allow user to define duplex lank page text at the docversion level
|
||||
// C2019-004: Allow user to define duplex blank page text at the docversion level
|
||||
[Category("Print Settings")]
|
||||
[DisplayName("Duplex Blank Page Text")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
|
@@ -812,43 +812,6 @@ namespace VEPROMS.CSLA.Library
|
||||
OnPropertyChanged("Print_Watermark");
|
||||
}
|
||||
}
|
||||
[Category("Print Settings")]
|
||||
[DisplayName("Disable Automatic Duplexing")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Disable Duplex Printing")]
|
||||
public bool Print_DisableDuplex
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["PrintSettings", "disableduplex"];
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("PrintSettings", "disableduplex"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
s = "false";// default to volian default
|
||||
|
||||
return bool.Parse(s);
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("PrintSettings", "disableduplex"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "False";
|
||||
|
||||
if (parval.Equals(value.ToString()))
|
||||
_Xp["PrintSettings", "disableduplex"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["PrintSettings", "disableduplex"] = value.ToString(); // save selected value
|
||||
|
||||
OnPropertyChanged("Print_DisableDuplex");
|
||||
}
|
||||
}
|
||||
// Change Bar Use from 16-bit code:
|
||||
// No Default
|
||||
// Without Change Bars
|
||||
|
@@ -607,43 +607,6 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
}
|
||||
[Category("Print Settings")]
|
||||
[DisplayName("Disable Automatic Duplexing")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Disable Duplex Printing")]
|
||||
public bool Print_DisableDuplex
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["PrintSettings", "disableduplex"];
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("PrintSettings", "disableduplex"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
s = "false";// default to volian default
|
||||
|
||||
return bool.Parse(s);
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("PrintSettings", "disableduplex"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "false";
|
||||
|
||||
if (parval.Equals(value.ToString()))
|
||||
_Xp["PrintSettings", "disableduplex"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["PrintSettings", "disableduplex"] = value.ToString(); // save selected value
|
||||
|
||||
OnPropertyChanged("Print_DisableDuplex");
|
||||
}
|
||||
}
|
||||
[Category("Print Settings")]
|
||||
[DisplayName("Print All Not In Merge Pdfs")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Print All Do Not Include In Merge Pdfs")]
|
||||
|
Reference in New Issue
Block a user