Placekeeper logic

Added Checkbox to generate the Placekeeper
Generate Placekeeper logic
Disable the “include in placekeeper” checkbox on Placekeeper section types
This commit is contained in:
2014-05-09 19:13:15 +00:00
parent 10607cce7d
commit 9b930ffeda
6 changed files with 54 additions and 41 deletions

View File

@@ -106,6 +106,13 @@ namespace VEPROMS
private string _PdfFile;
private bool _MakePlaceKeeper = false;
public bool MakePlaceKeeper
{
get { return _MakePlaceKeeper; }
set { _MakePlaceKeeper = value; }
}
private void tmrRun_Tick(object sender, EventArgs e)
{
tmrRun.Enabled = false;
@@ -116,7 +123,7 @@ namespace VEPROMS
if (!CancelStop) PromsPrinter.ClearTransPageNumProblems();
do
{
_PdfFile = MyPromsPrinter.Print(PDFPath);
_PdfFile = MyPromsPrinter.Print(PDFPath, MakePlaceKeeper);
}
while (_PdfFile == null && MessageBox.Show("Try Again?", "PDF Creation Failed", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes);
if (_PdfFile == null)