diff --git a/PROMS/VEPROMS User Interface/DlgPrintProcedure.Designer.cs b/PROMS/VEPROMS User Interface/DlgPrintProcedure.Designer.cs index 10612cf8..3856824c 100644 --- a/PROMS/VEPROMS User Interface/DlgPrintProcedure.Designer.cs +++ b/PROMS/VEPROMS User Interface/DlgPrintProcedure.Designer.cs @@ -77,6 +77,7 @@ namespace VEPROMS this.btnCreatePDF = new DevComponents.DotNetBar.ButtonX(); this.btnCancel = new DevComponents.DotNetBar.ButtonX(); this.DlgBrowseFolder = new System.Windows.Forms.FolderBrowserDialog(); + this.cbxDebug = new System.Windows.Forms.CheckBox(); ((System.ComponentModel.ISupportInitialize)(this.tabControl1)).BeginInit(); this.tabControl1.SuspendLayout(); this.tabControlPanel3.SuspendLayout(); @@ -884,12 +885,31 @@ namespace VEPROMS this.btnCancel.Text = "Cancel"; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // + // cbxDebug + // + this.cbxDebug.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.cbxDebug.AutoSize = true; + this.cbxDebug.BackColor = System.Drawing.Color.Transparent; + this.cbxDebug.Checked = true; + this.cbxDebug.CheckState = System.Windows.Forms.CheckState.Checked; + this.cbxDebug.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysOverwritePDF", true)); + this.cbxDebug.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cbxDebug.ForeColor = System.Drawing.SystemColors.ControlText; + this.cbxDebug.Location = new System.Drawing.Point(213, 320); + this.cbxDebug.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.cbxDebug.Name = "cbxDebug"; + this.cbxDebug.Size = new System.Drawing.Size(73, 22); + this.cbxDebug.TabIndex = 98; + this.cbxDebug.Text = "Debug"; + this.cbxDebug.UseVisualStyleBackColor = false; + // // DlgPrintProcedure // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(675, 343); + this.Controls.Add(this.cbxDebug); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnCreatePDF); this.Controls.Add(this.tabControl1); @@ -919,6 +939,7 @@ namespace VEPROMS this.tabControlPanel1.ResumeLayout(false); this.tabControlPanel1.PerformLayout(); this.ResumeLayout(false); + this.PerformLayout(); } @@ -971,5 +992,6 @@ namespace VEPROMS private System.Windows.Forms.BindingSource docVersionConfigBindingSource; private DevComponents.DotNetBar.Controls.TextBoxX txbPDFLocation; private DevComponents.DotNetBar.LabelX lblStatus; + private System.Windows.Forms.CheckBox cbxDebug; } } \ No newline at end of file diff --git a/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs b/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs index 06fa925d..9691d687 100644 --- a/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs +++ b/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs @@ -310,7 +310,7 @@ namespace VEPROMS //this.Cursor = Cursors.WaitCursor; //ProcedureConfig.PrintWatermark pw = MyProcedure.ProcedureConfig.Print_Watermark; PrintWatermark pw = (PrintWatermark)cbxWaterMark.SelectedValue; - frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNum, RevDate.ToShortDateString(), pw.ToString(), true, @"C:\TEMP\16Bit", cbxOpenAfterCreate2.Checked, PDFPath); + frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNum, RevDate.ToShortDateString(), pw.ToString(), cbxDebug.Checked, @"C:\TEMP\16Bit", cbxOpenAfterCreate2.Checked, PDFPath); frmStatus.Show(); this.Close();