Update code to reflect change in config file.

The configuration now seperates the output path and filename into
seperate componentants.
This commit is contained in:
2024-08-05 14:32:13 -04:00
parent f85361ed27
commit 1d332927d6
5 changed files with 56 additions and 7 deletions
+2 -1
View File
@@ -50,7 +50,8 @@ namespace PDF_Merge
private void button1_Click(object sender, EventArgs e)
{
string[] pdf_files = MergePDFs.CollectPdfFiles();
MergePDFs.MergePdfFiles(pdf_files, ConfigurationManager.AppSettings["PDF-Output"]);
string pdfPath = ConfigurationManager.AppSettings["PDF-Output"] + "/" + ConfigurationManager.AppSettings["PDF-Name"];
MergePDFs.MergePdfFiles(pdf_files, pdfPath);
}
private void exitToolStripMenuItem_Click(object sender, EventArgs e)