Logic to save and retrieve the PDFFilePrefix and PDFFileSuffix settings

This commit is contained in:
John Jenko 2014-01-17 22:21:12 +00:00
parent ad0dc4e2ca
commit b5b44d14b2

View File

@ -717,6 +717,44 @@ namespace VEPROMS.CSLA.Library
}
}
[Category("Print Settings")]
[DisplayName("PDFFilePrefix")]
[RefreshProperties(RefreshProperties.All)]
[Description("PDF File Prefix")]
public string Print_PDFFilePrefix
{
get
{
return _Xp["PrintSettings", "PDFFilePrefix"];
}
set
{
if (_SaveChangesToDocVersionConfig)
{
_Xp["PrintSettings", "PDFFilePrefix"] = value; // save selected value
OnPropertyChanged("Print_PDFFilePrefix");
}
}
}
[Category("Print Settings")]
[DisplayName("PDFFileSuffix")]
[RefreshProperties(RefreshProperties.All)]
[Description("PDF File Suffix")]
public string Print_PDFFileSuffix
{
get
{
return _Xp["PrintSettings", "PDFFileSuffix"];
}
set
{
if (_SaveChangesToDocVersionConfig)
{
_Xp["PrintSettings", "PDFFileSuffix"] = value; // save selected value
OnPropertyChanged("Print_PDFFileSuffix");
}
}
}
[Category("Print Settings")]
[DisplayName("AlwaysOverwritePDF")]
[RefreshProperties(RefreshProperties.All)]
[Description("Always Overwrite PDF File")]
@ -1615,6 +1653,7 @@ OnPropertyChanged("Default_BkColor");
}
*/
#endregion
#region Slave
public void AddSlave(string xml)
{
XmlDocument xd = new XmlDocument();
@ -1662,5 +1701,6 @@ OnPropertyChanged("Default_BkColor");
return GetCombinedSlaveValue(item, "0");
}
//end added by jcb to fix master issue byron/braidwood
#endregion
}
}