From a2bfd97d76719a0c750fe6e5b3ac5836dd820dde Mon Sep 17 00:00:00 2001 From: Maddo Scientisto Date: Thu, 4 Mar 2021 17:23:44 +0100 Subject: [PATCH] Salvataggio e caricamento nuovi dati --- imagecatalog/MainForm.Designer.cs | 22 ++++------------------ imagecatalog/MainForm.cs | 8 ++++++++ 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/imagecatalog/MainForm.Designer.cs b/imagecatalog/MainForm.Designer.cs index 6aa73c4..644be9b 100644 --- a/imagecatalog/MainForm.Designer.cs +++ b/imagecatalog/MainForm.Designer.cs @@ -75,7 +75,6 @@ namespace ImageCatalog this.chkRotazioneAutomatica = new System.Windows.Forms.CheckBox(); this.chkForzaJpg = new System.Windows.Forms.CheckBox(); this.TabPage3 = new System.Windows.Forms.TabPage(); - this.CheckBox2 = new System.Windows.Forms.CheckBox(); this.GroupBox10 = new System.Windows.Forms.GroupBox(); this.Label42 = new System.Windows.Forms.Label(); this.Label41 = new System.Windows.Forms.Label(); @@ -285,10 +284,10 @@ namespace ImageCatalog this.rdbNuovoMetodo.Checked = true; this.rdbNuovoMetodo.Location = new System.Drawing.Point(8, 28); this.rdbNuovoMetodo.Name = "rdbNuovoMetodo"; - this.rdbNuovoMetodo.Size = new System.Drawing.Size(95, 17); + this.rdbNuovoMetodo.Size = new System.Drawing.Size(65, 17); this.rdbNuovoMetodo.TabIndex = 1; this.rdbNuovoMetodo.TabStop = true; - this.rdbNuovoMetodo.Text = "Nuovo metodo"; + this.rdbNuovoMetodo.Text = "Parallelo"; this.rdbNuovoMetodo.UseVisualStyleBackColor = true; // // rdbVecchioMetodo @@ -296,9 +295,9 @@ namespace ImageCatalog this.rdbVecchioMetodo.AutoSize = true; this.rdbVecchioMetodo.Location = new System.Drawing.Point(8, 4); this.rdbVecchioMetodo.Name = "rdbVecchioMetodo"; - this.rdbVecchioMetodo.Size = new System.Drawing.Size(102, 17); + this.rdbVecchioMetodo.Size = new System.Drawing.Size(60, 17); this.rdbVecchioMetodo.TabIndex = 0; - this.rdbVecchioMetodo.Text = "Vecchio metodo"; + this.rdbVecchioMetodo.Text = "Lineare"; this.rdbVecchioMetodo.UseVisualStyleBackColor = true; // // Label8 @@ -570,7 +569,6 @@ namespace ImageCatalog // // TabPage3 // - this.TabPage3.Controls.Add(this.CheckBox2); this.TabPage3.Controls.Add(this.GroupBox10); this.TabPage3.Controls.Add(this.GroupBox9); this.TabPage3.Controls.Add(this.GroupBox5); @@ -583,16 +581,6 @@ namespace ImageCatalog this.TabPage3.Text = "Testo"; this.TabPage3.UseVisualStyleBackColor = true; // - // CheckBox2 - // - this.CheckBox2.AutoSize = true; - this.CheckBox2.Location = new System.Drawing.Point(7, 8); - this.CheckBox2.Name = "CheckBox2"; - this.CheckBox2.Size = new System.Drawing.Size(93, 17); - this.CheckBox2.TabIndex = 40; - this.CheckBox2.Text = "Aggiungi testo"; - this.CheckBox2.UseVisualStyleBackColor = true; - // // GroupBox10 // this.GroupBox10.Controls.Add(this.Label42); @@ -1649,7 +1637,6 @@ namespace ImageCatalog this.GroupBox7.ResumeLayout(false); this.GroupBox7.PerformLayout(); this.TabPage3.ResumeLayout(false); - this.TabPage3.PerformLayout(); this.GroupBox10.ResumeLayout(false); this.GroupBox10.PerformLayout(); this.GroupBox9.ResumeLayout(false); @@ -2141,7 +2128,6 @@ namespace ImageCatalog internal Panel Panel3; internal RadioButton rdbNuovoMetodo; internal RadioButton rdbVecchioMetodo; - internal CheckBox CheckBox2; internal CheckBox chkSovrascriviFile; private Button _btnCreaCatalogoAsync; private Timer timer1; diff --git a/imagecatalog/MainForm.cs b/imagecatalog/MainForm.cs index ff93826..29719bd 100644 --- a/imagecatalog/MainForm.cs +++ b/imagecatalog/MainForm.cs @@ -500,6 +500,9 @@ namespace ImageCatalog Module1.SetupIni.AggiornaParametro("NumTempoSmall", RadioButton7.Checked); Module1.SetupIni.AggiornaParametro("CompressioneJpeg", TextBox32.Text); Module1.SetupIni.AggiornaParametro("CompressioneJpegMiniatura", TextBox33.Text); + // 2021 + Module1.SetupIni.AggiornaParametro("ChunkSize", TextBox8.Text); + Module1.SetupIni.AggiornaParametro("ThreadsCount", TextBox7.Text); Module1.SetupIni.SalvaParametriSetup(); Text = "Image Catalog - " + LeggiSoloNomeFile(IlNome); } @@ -601,6 +604,11 @@ namespace ImageCatalog } Text = "Image Catalog - " + LeggiSoloNomeFile(IlNome); + + // 2021 + TextBox8.Text = Module1.SetupIni.LeggiParametroString("ChunkSize"); + TextBox7.Text = Module1.SetupIni.LeggiParametroString("ThreadsCount"); + } }