Added "new" project
This commit is contained in:
@@ -123,6 +123,7 @@
|
||||
this.btnDisposePics = new System.Windows.Forms.Button();
|
||||
this.btnDeleteTemp = new System.Windows.Forms.Button();
|
||||
this.btnDeleteCacheWork = new System.Windows.Forms.Button();
|
||||
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
@@ -159,8 +160,9 @@
|
||||
// fileToolStripMenuItem
|
||||
//
|
||||
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.loadToolStripMenuItem,
|
||||
this.newToolStripMenuItem,
|
||||
this.toolStripSeparator1,
|
||||
this.loadToolStripMenuItem,
|
||||
this.saveToolStripMenuItem,
|
||||
this.toolStripSeparator2,
|
||||
this.quitToolStripMenuItem});
|
||||
@@ -171,31 +173,31 @@
|
||||
// loadToolStripMenuItem
|
||||
//
|
||||
this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
|
||||
this.loadToolStripMenuItem.Size = new System.Drawing.Size(109, 22);
|
||||
this.loadToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.loadToolStripMenuItem.Text = "&Load...";
|
||||
this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(106, 6);
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(177, 6);
|
||||
//
|
||||
// saveToolStripMenuItem
|
||||
//
|
||||
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
||||
this.saveToolStripMenuItem.Size = new System.Drawing.Size(109, 22);
|
||||
this.saveToolStripMenuItem.Text = "&Save";
|
||||
this.saveToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.saveToolStripMenuItem.Text = "&Save...";
|
||||
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
|
||||
//
|
||||
// toolStripSeparator2
|
||||
//
|
||||
this.toolStripSeparator2.Name = "toolStripSeparator2";
|
||||
this.toolStripSeparator2.Size = new System.Drawing.Size(106, 6);
|
||||
this.toolStripSeparator2.Size = new System.Drawing.Size(177, 6);
|
||||
//
|
||||
// quitToolStripMenuItem
|
||||
//
|
||||
this.quitToolStripMenuItem.Name = "quitToolStripMenuItem";
|
||||
this.quitToolStripMenuItem.Size = new System.Drawing.Size(109, 22);
|
||||
this.quitToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.quitToolStripMenuItem.Text = "&Quit";
|
||||
this.quitToolStripMenuItem.Click += new System.EventHandler(this.quitToolStripMenuItem_Click);
|
||||
//
|
||||
@@ -1072,6 +1074,13 @@
|
||||
this.btnDeleteCacheWork.UseVisualStyleBackColor = true;
|
||||
this.btnDeleteCacheWork.Click += new System.EventHandler(this.btnDeleteCacheWork_Click);
|
||||
//
|
||||
// newToolStripMenuItem
|
||||
//
|
||||
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
|
||||
this.newToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.newToolStripMenuItem.Text = "&New";
|
||||
this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
@@ -1223,6 +1232,7 @@
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
|
||||
private System.Windows.Forms.ToolStripMenuItem newToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1496,5 +1496,56 @@ namespace PDFWorkflowManager
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void newToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Reset all input fields to default values
|
||||
txtFileName.Text = "";
|
||||
txtTitle.Text = "";
|
||||
cmbLanguage.SelectedIndex = cmbLanguage.FindStringExact("English");
|
||||
txtLanguages.Text = "";
|
||||
txtType.Text = "";
|
||||
txtPublisher.Text = "";
|
||||
txtAuthor.Text = "";
|
||||
txtISBN.Text = "";
|
||||
txtDate.Text = "";
|
||||
txtPageCount.Text = "";
|
||||
cmbResolution.SelectedIndex = cmbResolution.FindStringExact("600");
|
||||
checkPhotocopy.Checked = false;
|
||||
checkReplace.Checked = false;
|
||||
txtPartnumber.Text = "";
|
||||
trackBar1.Value = 4;
|
||||
txtContributor.Text = "";
|
||||
txtContributorURL.Text = "";
|
||||
txtPostProcessor.Text = strPostProcessor;
|
||||
txtTimeSpent.Text = "";
|
||||
txtPDFAuthor.Text = Properties.Settings.Default.PDFMetaAuthor;
|
||||
txtPDFKeywords.Text = "";
|
||||
cmbBanner.SelectedIndex = Properties.Settings.Default.Banner;
|
||||
chkMagazines.Checked = false;
|
||||
checkSimplex.Checked = false;
|
||||
txtProjectDir.Text = "";
|
||||
|
||||
// Clear up pictures
|
||||
try
|
||||
{
|
||||
if (pictureBox1.Image != null)
|
||||
{
|
||||
pictureBox1.Image.Dispose();
|
||||
pictureBox1.Image = null;
|
||||
}
|
||||
if (pictureBox2.Image != null)
|
||||
{
|
||||
pictureBox2.Image.Dispose();
|
||||
pictureBox2.Image = null;
|
||||
}
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
|
||||
// Optionally reset status bar and progress bar
|
||||
toolStripStatusLabel1.Text = "";
|
||||
toolStripProgressBar1.Value = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user