Added the form controls and AppSettings keys to allow the user to select the format of the date appended to the output file. Further update to issue #1.
222 lines
7.9 KiB
C#
222 lines
7.9 KiB
C#
using System.Configuration;
|
|
|
|
namespace PDF_Merge
|
|
{
|
|
partial class ConfForm
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
SaveBtn = new Button();
|
|
CancelBtn = new Button();
|
|
sourceBox = new TextBox();
|
|
outputBox = new TextBox();
|
|
folderBrowserDialog1 = new FolderBrowserDialog();
|
|
sourceLabel = new Label();
|
|
outputLabel = new Label();
|
|
overrideCBox = new CheckBox();
|
|
sourceDirBtn = new Button();
|
|
outPathBtn = new Button();
|
|
FileLable = new Label();
|
|
FileNameBox = new TextBox();
|
|
fileExtlabel = new Label();
|
|
appendDatecheckBox = new CheckBox();
|
|
dateFormatOpts = new ComboBox();
|
|
SuspendLayout();
|
|
//
|
|
// SaveBtn
|
|
//
|
|
SaveBtn.Location = new Point(327, 227);
|
|
SaveBtn.Name = "SaveBtn";
|
|
SaveBtn.Size = new Size(112, 34);
|
|
SaveBtn.TabIndex = 0;
|
|
SaveBtn.Text = "Save";
|
|
SaveBtn.UseVisualStyleBackColor = true;
|
|
SaveBtn.Click += SaveBtn_Click;
|
|
//
|
|
// CancelBtn
|
|
//
|
|
CancelBtn.Location = new Point(193, 227);
|
|
CancelBtn.Name = "CancelBtn";
|
|
CancelBtn.Size = new Size(112, 34);
|
|
CancelBtn.TabIndex = 1;
|
|
CancelBtn.Text = "Cancel";
|
|
CancelBtn.UseVisualStyleBackColor = true;
|
|
CancelBtn.Click += CancelBtn_Click;
|
|
//
|
|
// sourceBox
|
|
//
|
|
sourceBox.Location = new Point(171, 28);
|
|
sourceBox.Name = "sourceBox";
|
|
sourceBox.Size = new Size(150, 31);
|
|
sourceBox.TabIndex = 2;
|
|
//
|
|
// outputBox
|
|
//
|
|
outputBox.Location = new Point(171, 68);
|
|
outputBox.Name = "outputBox";
|
|
outputBox.Size = new Size(150, 31);
|
|
outputBox.TabIndex = 3;
|
|
//
|
|
// sourceLabel
|
|
//
|
|
sourceLabel.AutoSize = true;
|
|
sourceLabel.Location = new Point(22, 28);
|
|
sourceLabel.Name = "sourceLabel";
|
|
sourceLabel.Size = new Size(143, 25);
|
|
sourceLabel.TabIndex = 4;
|
|
sourceLabel.Text = "Source Directory";
|
|
//
|
|
// outputLabel
|
|
//
|
|
outputLabel.AutoSize = true;
|
|
outputLabel.Location = new Point(25, 68);
|
|
outputLabel.Name = "outputLabel";
|
|
outputLabel.Size = new Size(108, 25);
|
|
outputLabel.TabIndex = 5;
|
|
outputLabel.Text = "Output Path";
|
|
//
|
|
// overrideCBox
|
|
//
|
|
overrideCBox.AutoSize = true;
|
|
overrideCBox.Checked = true;
|
|
overrideCBox.CheckState = CheckState.Checked;
|
|
overrideCBox.Location = new Point(171, 152);
|
|
overrideCBox.Name = "overrideCBox";
|
|
overrideCBox.Size = new Size(179, 29);
|
|
overrideCBox.TabIndex = 6;
|
|
overrideCBox.Text = "Overwrite Existing";
|
|
overrideCBox.UseVisualStyleBackColor = true;
|
|
//
|
|
// sourceDirBtn
|
|
//
|
|
sourceDirBtn.Location = new Point(327, 26);
|
|
sourceDirBtn.Name = "sourceDirBtn";
|
|
sourceDirBtn.Size = new Size(41, 34);
|
|
sourceDirBtn.TabIndex = 7;
|
|
sourceDirBtn.Text = "...";
|
|
sourceDirBtn.UseVisualStyleBackColor = true;
|
|
sourceDirBtn.Click += SourceDirBtn_Click;
|
|
//
|
|
// outPathBtn
|
|
//
|
|
outPathBtn.Location = new Point(327, 66);
|
|
outPathBtn.Name = "outPathBtn";
|
|
outPathBtn.Size = new Size(41, 34);
|
|
outPathBtn.TabIndex = 8;
|
|
outPathBtn.Text = "...";
|
|
outPathBtn.UseVisualStyleBackColor = true;
|
|
outPathBtn.Click += OutPathBtn_Click;
|
|
//
|
|
// FileLable
|
|
//
|
|
FileLable.AutoSize = true;
|
|
FileLable.Location = new Point(25, 108);
|
|
FileLable.Name = "FileLable";
|
|
FileLable.Size = new Size(82, 25);
|
|
FileLable.TabIndex = 9;
|
|
FileLable.Text = "Filename";
|
|
//
|
|
// FileNameBox
|
|
//
|
|
FileNameBox.Location = new Point(171, 108);
|
|
FileNameBox.Name = "FileNameBox";
|
|
FileNameBox.Size = new Size(150, 31);
|
|
FileNameBox.TabIndex = 10;
|
|
//
|
|
// fileExtlabel
|
|
//
|
|
fileExtlabel.AutoSize = true;
|
|
fileExtlabel.Location = new Point(327, 114);
|
|
fileExtlabel.Name = "fileExtlabel";
|
|
fileExtlabel.Size = new Size(44, 25);
|
|
fileExtlabel.TabIndex = 11;
|
|
fileExtlabel.Text = ".pdf";
|
|
//
|
|
// appendDatecheckBox
|
|
//
|
|
appendDatecheckBox.AutoSize = true;
|
|
appendDatecheckBox.Location = new Point(171, 187);
|
|
appendDatecheckBox.Name = "appendDatecheckBox";
|
|
appendDatecheckBox.Size = new Size(144, 29);
|
|
appendDatecheckBox.TabIndex = 12;
|
|
appendDatecheckBox.Text = "Append Date";
|
|
appendDatecheckBox.UseVisualStyleBackColor = true;
|
|
appendDatecheckBox.CheckedChanged += AppendDatecheckBox_CheckedChanged;
|
|
//
|
|
// dateFormatOpts
|
|
//
|
|
dateFormatOpts.FormattingEnabled = true;
|
|
dateFormatOpts.Items.AddRange(new object[] { "yyyy-MM-dd", "MM-dd-yyyy" });
|
|
dateFormatOpts.Location = new Point(321, 188);
|
|
dateFormatOpts.Name = "dateFormatOpts";
|
|
dateFormatOpts.Size = new Size(182, 33);
|
|
dateFormatOpts.TabIndex = 13;
|
|
//
|
|
// ConfForm
|
|
//
|
|
AutoScaleDimensions = new SizeF(10F, 25F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(546, 282);
|
|
Controls.Add(dateFormatOpts);
|
|
Controls.Add(appendDatecheckBox);
|
|
Controls.Add(fileExtlabel);
|
|
Controls.Add(FileNameBox);
|
|
Controls.Add(FileLable);
|
|
Controls.Add(outPathBtn);
|
|
Controls.Add(sourceDirBtn);
|
|
Controls.Add(overrideCBox);
|
|
Controls.Add(outputLabel);
|
|
Controls.Add(sourceLabel);
|
|
Controls.Add(outputBox);
|
|
Controls.Add(sourceBox);
|
|
Controls.Add(CancelBtn);
|
|
Controls.Add(SaveBtn);
|
|
Name = "ConfForm";
|
|
Text = "Configure";
|
|
ResumeLayout(false);
|
|
PerformLayout();
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Button SaveBtn;
|
|
private Button CancelBtn;
|
|
private TextBox sourceBox;
|
|
private TextBox outputBox;
|
|
private FolderBrowserDialog folderBrowserDialog1;
|
|
private Label sourceLabel;
|
|
private Label outputLabel;
|
|
private CheckBox overrideCBox;
|
|
private Button sourceDirBtn;
|
|
private Button outPathBtn;
|
|
private Label FileLable;
|
|
private TextBox FileNameBox;
|
|
private Label fileExtlabel;
|
|
private CheckBox appendDatecheckBox;
|
|
private ComboBox dateFormatOpts;
|
|
}
|
|
} |