PDF-Merge/ConfForm.cs

41 lines
995 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace PDF_Merge
{
public partial class ConfForm : Form
{
public ConfForm()
{
InitializeComponent();
string sourcePath = ConfigurationManager.AppSettings["PDF-Path"];
string outputPath = ConfigurationManager.AppSettings["PDF-Output"];
sourceBox.Text = sourcePath;
outputBox.Text = outputPath;
if (ConfigurationManager.AppSettings["overwrite"] == "true")
{
overrideCBox.Checked = true;
}
else
{
overrideCBox.Checked = false;
}
}
private void cancelBtn_Click(object sender, EventArgs e)
{
this.Close();
}
}
}