diff --git a/Src/A69WD/Net/frmDownloader.Designer.cs b/Src/A69WD/Net/frmDownloader.Designer.cs index e1f5ebe..afa0cf3 100644 --- a/Src/A69WD/Net/frmDownloader.Designer.cs +++ b/Src/A69WD/Net/frmDownloader.Designer.cs @@ -30,6 +30,7 @@ this.wb1 = new System.Windows.Forms.WebBrowser(); this.btnImportLinks = new System.Windows.Forms.Button(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); + this.btnTest = new System.Windows.Forms.Button(); this.SuspendLayout(); // // btnClose @@ -100,11 +101,22 @@ this.openFileDialog1.FileName = "openFileDialog1"; this.openFileDialog1.Filter = "File Testo|*.tes|Tutti i file|*.*"; // + // btnTest + // + this.btnTest.Location = new System.Drawing.Point(258, 1); + this.btnTest.Name = "btnTest"; + this.btnTest.Size = new System.Drawing.Size(51, 33); + this.btnTest.TabIndex = 16; + this.btnTest.Text = "Test"; + this.btnTest.UseVisualStyleBackColor = true; + this.btnTest.Click += new System.EventHandler(this.btnTest_Click); + // // frmDownloader // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(504, 74); + this.Controls.Add(this.btnTest); this.Controls.Add(this.btnImportLinks); this.Controls.Add(this.btnClose); this.Controls.Add(this.btnHide); @@ -126,5 +138,6 @@ private System.Windows.Forms.WebBrowser wb1; private System.Windows.Forms.Button btnImportLinks; private System.Windows.Forms.OpenFileDialog openFileDialog1; + private System.Windows.Forms.Button btnTest; } } \ No newline at end of file diff --git a/Src/A69WD/Net/frmDownloader.cs b/Src/A69WD/Net/frmDownloader.cs index b54ae48..dfc745b 100644 --- a/Src/A69WD/Net/frmDownloader.cs +++ b/Src/A69WD/Net/frmDownloader.cs @@ -7,6 +7,7 @@ using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; +using System.Diagnostics; namespace A69WD { @@ -70,8 +71,21 @@ namespace A69WD { + #endregion + + + private void btnTest_Click(object sender, EventArgs e) { + ProcessStartInfo startInfo = new ProcessStartInfo(@"D:\MyTools\Npp\notepad++.exe"); + startInfo.WindowStyle = ProcessWindowStyle.Hidden; + startInfo.Arguments = @"C:\Temporary\ArchivioTesti\Logs\Log.tes"; + Process ieProcess = Process.Start(startInfo); + } + + + + }//class frmDownloader }//namespace A69WD