From 3cd03879f0200922ab0ad192dd27c67184bae3e2 Mon Sep 17 00:00:00 2001 From: CSiCoAlm Date: Thu, 22 Sep 2022 12:05:25 +0200 Subject: [PATCH] Vrs 0.3.0.0 Compilata da CSiCoAlm il 2022/09/22 - Versione in cui ho sostituito l'oggetto WebBrowser con la classe WebClient per poter gestire in parallelo i download. --- Src/A69WD/General/Cfg.cs | 6 ++++++ Src/A69WD/General/cTools.cs | 3 ++- Src/A69WD/Net/frmDownloader.Designer.cs | 25 +++++++++++++------------ Src/A69WD/Net/frmDownloader.cs | 10 ++-------- Src/A69WD/Properties/AssemblyInfo.cs | 4 ++-- 5 files changed, 25 insertions(+), 23 deletions(-) diff --git a/Src/A69WD/General/Cfg.cs b/Src/A69WD/General/Cfg.cs index 3b46099..78545b6 100644 --- a/Src/A69WD/General/Cfg.cs +++ b/Src/A69WD/General/Cfg.cs @@ -138,6 +138,12 @@ namespace A69WD { public virtual string LogsWinLoggerRef { get { return logsWinLoggerRef; } set { logsWinLoggerRef = value; } } private string logsWinLoggerRef; + /// + /// Editor per la visualizzazione dei testi e dei logs + /// + public virtual string TextEditor { get { return textEditor; } set { textEditor = value; } } + private string textEditor; + #endregion diff --git a/Src/A69WD/General/cTools.cs b/Src/A69WD/General/cTools.cs index bec0d98..55aae75 100644 --- a/Src/A69WD/General/cTools.cs +++ b/Src/A69WD/General/cTools.cs @@ -358,7 +358,8 @@ namespace A69WD { System.Diagnostics.Process proc = new System.Diagnostics.Process(); // proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; // proc.StartInfo.Verb = "print"; - proc.StartInfo.FileName = @"D:\MyTools\Npp\notepad++.exe"; + //proc.StartInfo.FileName = @"C:\Program Files\Notepad++\notepad++.exe"; + proc.StartInfo.FileName = Cfg.Settings.TextEditor; proc.StartInfo.Arguments = String.Format(@" {0}", file); Logger.Log(proc.StartInfo.FileName + proc.StartInfo.Arguments); proc.Start(); diff --git a/Src/A69WD/Net/frmDownloader.Designer.cs b/Src/A69WD/Net/frmDownloader.Designer.cs index ee19201..abe5e99 100644 --- a/Src/A69WD/Net/frmDownloader.Designer.cs +++ b/Src/A69WD/Net/frmDownloader.Designer.cs @@ -30,7 +30,7 @@ this.btnImportLinks = new System.Windows.Forms.Button(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.btnShowLog = new System.Windows.Forms.Button(); - this.checkBox1 = new System.Windows.Forms.CheckBox(); + this.cbSoloFileIndice = new System.Windows.Forms.CheckBox(); this.SuspendLayout(); // // btnClose @@ -45,12 +45,13 @@ // // btnHide // - this.btnHide.Location = new System.Drawing.Point(317, 12); + this.btnHide.Location = new System.Drawing.Point(317, 22); this.btnHide.Name = "btnHide"; this.btnHide.Size = new System.Drawing.Size(97, 33); this.btnHide.TabIndex = 13; this.btnHide.Text = "Hide"; this.btnHide.UseVisualStyleBackColor = true; + this.btnHide.Visible = false; this.btnHide.Click += new System.EventHandler(this.btnHide_Click); // // btnDownloadAll @@ -99,22 +100,22 @@ this.btnShowLog.UseVisualStyleBackColor = true; this.btnShowLog.Click += new System.EventHandler(this.btnShowLog_Click); // - // checkBox1 + // cbSoloFileIndice // - this.checkBox1.AutoSize = true; - this.checkBox1.Location = new System.Drawing.Point(321, -1); - this.checkBox1.Name = "checkBox1"; - this.checkBox1.Size = new System.Drawing.Size(80, 17); - this.checkBox1.TabIndex = 18; - this.checkBox1.Text = "checkBox1"; - this.checkBox1.UseVisualStyleBackColor = true; + this.cbSoloFileIndice.AutoSize = true; + this.cbSoloFileIndice.Location = new System.Drawing.Point(325, 20); + this.cbSoloFileIndice.Name = "cbSoloFileIndice"; + this.cbSoloFileIndice.Size = new System.Drawing.Size(76, 17); + this.cbSoloFileIndice.TabIndex = 18; + this.cbSoloFileIndice.Text = "Solo Index"; + this.cbSoloFileIndice.UseVisualStyleBackColor = true; // // frmDownloader // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(524, 74); - this.Controls.Add(this.checkBox1); + this.Controls.Add(this.cbSoloFileIndice); this.Controls.Add(this.btnShowLog); this.Controls.Add(this.btnImportLinks); this.Controls.Add(this.btnClose); @@ -137,6 +138,6 @@ private System.Windows.Forms.Button btnImportLinks; private System.Windows.Forms.OpenFileDialog openFileDialog1; private System.Windows.Forms.Button btnShowLog; - private System.Windows.Forms.CheckBox checkBox1; + private System.Windows.Forms.CheckBox cbSoloFileIndice; } } \ No newline at end of file diff --git a/Src/A69WD/Net/frmDownloader.cs b/Src/A69WD/Net/frmDownloader.cs index 48c8fc1..88a9ddd 100644 --- a/Src/A69WD/Net/frmDownloader.cs +++ b/Src/A69WD/Net/frmDownloader.cs @@ -41,7 +41,8 @@ namespace A69WD { } private void btnDownloadAll_Click(object sender, EventArgs e) { - engine.Start(true); + //engine.Start(true); + engine.Start(!cbSoloFileIndice.Checked); } private void btnShowLog_Click(object sender, EventArgs e) { @@ -80,13 +81,6 @@ namespace A69WD { - - - - - - - #endregion diff --git a/Src/A69WD/Properties/AssemblyInfo.cs b/Src/A69WD/Properties/AssemblyInfo.cs index 8bc6c3d..ab585fa 100644 --- a/Src/A69WD/Properties/AssemblyInfo.cs +++ b/Src/A69WD/Properties/AssemblyInfo.cs @@ -32,8 +32,8 @@ using System.Runtime.InteropServices; // È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build // usando l'asterisco '*' come illustrato di seguito: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.2.0.2")] -[assembly: AssemblyFileVersion("0.2.0.2")] +[assembly: AssemblyVersion("0.3.0.0")] +[assembly: AssemblyFileVersion("0.3.0.0")] /*