Added Email & UpdateSettings flags

Keep code from failing if _LinkLocations is null
Add PromsPrinter to constructor for VlnPageHelper
This commit is contained in:
Rich 2012-05-10 15:44:27 +00:00
parent 1c183dc7ae
commit b0a8ee1625
3 changed files with 14 additions and 1 deletions

View File

@ -141,6 +141,18 @@
<setting name="FormatPath" serializeAs="String"> <setting name="FormatPath" serializeAs="String">
<value>C:\Development</value> <value>C:\Development</value>
</setting> </setting>
<setting name="OutlookEmail" serializeAs="String">
<value>True</value>
</setting>
<setting name="SMTPServer" serializeAs="String">
<value />
</setting>
<setting name="SMTPUser" serializeAs="String">
<value />
</setting>
<setting name="UpdateSettings" serializeAs="String">
<value>True</value>
</setting>
</VEPROMS.Properties.Settings> </VEPROMS.Properties.Settings>
<UISampleNetBar1.Properties.Settings> <UISampleNetBar1.Properties.Settings>
<setting name="ShowDefaultFolderProp" serializeAs="String"> <setting name="ShowDefaultFolderProp" serializeAs="String">

View File

@ -2244,6 +2244,7 @@ namespace Volian.Controls.Library
private LinkLocation FindBetweenLinks(int start) private LinkLocation FindBetweenLinks(int start)
{ {
DebugPrint("FL----------------Between>"); DebugPrint("FL----------------Between>");
if (_LinkLocations == null) return null;
foreach (LinkLocation ll in _LinkLocations) foreach (LinkLocation ll in _LinkLocations)
if (ll.Start == start && ll.StartsBetween) if (ll.Start == start && ll.StartsBetween)
return ll; return ll;

View File

@ -346,7 +346,7 @@ namespace Volian.Print.Library
// Set up Helper for the particular Section // Set up Helper for the particular Section
if (_MyHelper == null) if (_MyHelper == null)
{ {
cb.PdfWriter.PageEvent = _MyHelper = new VlnSvgPageHelper(mySection); cb.PdfWriter.PageEvent = _MyHelper = new VlnSvgPageHelper(mySection, this);
_MyHelper.AllowAllWatermarks = AllowAllWatermarks; _MyHelper.AllowAllWatermarks = AllowAllWatermarks;
_MyHelper.MyPdfWriter = cb.PdfWriter; _MyHelper.MyPdfWriter = cb.PdfWriter;
_MyHelper.CreatingFoldoutPage = doingFoldout; _MyHelper.CreatingFoldoutPage = doingFoldout;