Create and Show Debug Files
This commit is contained in:
parent
f20d9bbb6b
commit
15d7ab597c
@ -320,6 +320,7 @@ namespace VEPROMS
|
||||
}
|
||||
private void CreatePDFs()
|
||||
{
|
||||
CreateDebugFiles();
|
||||
// If file exists, determine if overwrite checkbox allows overwrite, if not prompt.
|
||||
|
||||
Volian.Print.Library.Rtf2Pdf.PdfDebug = true;
|
||||
@ -336,9 +337,25 @@ namespace VEPROMS
|
||||
frmStatus.ShowDialog();
|
||||
}
|
||||
this.Close();
|
||||
ShowDebugFiles();
|
||||
}
|
||||
private void CreateDebugFiles()
|
||||
{
|
||||
if (cbxDebugPagination.Checked)
|
||||
Volian.Base.Library.DebugPagination.Open(PDFPath + "\\DebugPagaination.txt");
|
||||
if (cbxDebugText.Checked)
|
||||
Volian.Base.Library.DebugText.Open(PDFPath + "\\DebugText.txt");
|
||||
}
|
||||
private void ShowDebugFiles()
|
||||
{
|
||||
if (cbxDebugPagination.Checked)
|
||||
Volian.Base.Library.DebugPagination.Show();
|
||||
if (cbxDebugText.Checked)
|
||||
Volian.Base.Library.DebugText.Show();
|
||||
}
|
||||
private void CreatePDF()
|
||||
{
|
||||
CreateDebugFiles();
|
||||
// If file exists, determine if overwrite checkbox allows overwrite, if not prompt.
|
||||
|
||||
Volian.Print.Library.Rtf2Pdf.PdfDebug = true;
|
||||
@ -349,6 +366,7 @@ namespace VEPROMS
|
||||
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNum, RevDate, pw.ToString(), cbxDebug.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked,PDFPath, cbd, txbPDFName.Text);
|
||||
frmStatus.ShowDialog();
|
||||
this.Close();
|
||||
ShowDebugFiles();
|
||||
}
|
||||
|
||||
// Determine if any dialog selections for change bars have overridden the data
|
||||
@ -534,15 +552,6 @@ namespace VEPROMS
|
||||
itm.MyContent.Config = MyProcedure.MyConfig.ToString();
|
||||
itm.Save();
|
||||
}
|
||||
|
||||
}
|
||||
private void cbxDebugPagination_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Volian.Base.Library.VlnSettings.DebugPagination = cbxDebugPagination.Checked;
|
||||
}
|
||||
private void cbxDebugText_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Volian.Base.Library.VlnSettings.DebugText = cbxDebugText.Checked;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user