Salvataggio e caricamento nuovi dati

This commit is contained in:
Maddo Scientisto 2021-03-04 17:23:44 +01:00
commit a2bfd97d76
2 changed files with 12 additions and 18 deletions

View file

@ -75,7 +75,6 @@ namespace ImageCatalog
this.chkRotazioneAutomatica = new System.Windows.Forms.CheckBox(); this.chkRotazioneAutomatica = new System.Windows.Forms.CheckBox();
this.chkForzaJpg = new System.Windows.Forms.CheckBox(); this.chkForzaJpg = new System.Windows.Forms.CheckBox();
this.TabPage3 = new System.Windows.Forms.TabPage(); this.TabPage3 = new System.Windows.Forms.TabPage();
this.CheckBox2 = new System.Windows.Forms.CheckBox();
this.GroupBox10 = new System.Windows.Forms.GroupBox(); this.GroupBox10 = new System.Windows.Forms.GroupBox();
this.Label42 = new System.Windows.Forms.Label(); this.Label42 = new System.Windows.Forms.Label();
this.Label41 = new System.Windows.Forms.Label(); this.Label41 = new System.Windows.Forms.Label();
@ -285,10 +284,10 @@ namespace ImageCatalog
this.rdbNuovoMetodo.Checked = true; this.rdbNuovoMetodo.Checked = true;
this.rdbNuovoMetodo.Location = new System.Drawing.Point(8, 28); this.rdbNuovoMetodo.Location = new System.Drawing.Point(8, 28);
this.rdbNuovoMetodo.Name = "rdbNuovoMetodo"; 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.TabIndex = 1;
this.rdbNuovoMetodo.TabStop = true; this.rdbNuovoMetodo.TabStop = true;
this.rdbNuovoMetodo.Text = "Nuovo metodo"; this.rdbNuovoMetodo.Text = "Parallelo";
this.rdbNuovoMetodo.UseVisualStyleBackColor = true; this.rdbNuovoMetodo.UseVisualStyleBackColor = true;
// //
// rdbVecchioMetodo // rdbVecchioMetodo
@ -296,9 +295,9 @@ namespace ImageCatalog
this.rdbVecchioMetodo.AutoSize = true; this.rdbVecchioMetodo.AutoSize = true;
this.rdbVecchioMetodo.Location = new System.Drawing.Point(8, 4); this.rdbVecchioMetodo.Location = new System.Drawing.Point(8, 4);
this.rdbVecchioMetodo.Name = "rdbVecchioMetodo"; 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.TabIndex = 0;
this.rdbVecchioMetodo.Text = "Vecchio metodo"; this.rdbVecchioMetodo.Text = "Lineare";
this.rdbVecchioMetodo.UseVisualStyleBackColor = true; this.rdbVecchioMetodo.UseVisualStyleBackColor = true;
// //
// Label8 // Label8
@ -570,7 +569,6 @@ namespace ImageCatalog
// //
// TabPage3 // TabPage3
// //
this.TabPage3.Controls.Add(this.CheckBox2);
this.TabPage3.Controls.Add(this.GroupBox10); this.TabPage3.Controls.Add(this.GroupBox10);
this.TabPage3.Controls.Add(this.GroupBox9); this.TabPage3.Controls.Add(this.GroupBox9);
this.TabPage3.Controls.Add(this.GroupBox5); this.TabPage3.Controls.Add(this.GroupBox5);
@ -583,16 +581,6 @@ namespace ImageCatalog
this.TabPage3.Text = "Testo"; this.TabPage3.Text = "Testo";
this.TabPage3.UseVisualStyleBackColor = true; 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 // GroupBox10
// //
this.GroupBox10.Controls.Add(this.Label42); this.GroupBox10.Controls.Add(this.Label42);
@ -1649,7 +1637,6 @@ namespace ImageCatalog
this.GroupBox7.ResumeLayout(false); this.GroupBox7.ResumeLayout(false);
this.GroupBox7.PerformLayout(); this.GroupBox7.PerformLayout();
this.TabPage3.ResumeLayout(false); this.TabPage3.ResumeLayout(false);
this.TabPage3.PerformLayout();
this.GroupBox10.ResumeLayout(false); this.GroupBox10.ResumeLayout(false);
this.GroupBox10.PerformLayout(); this.GroupBox10.PerformLayout();
this.GroupBox9.ResumeLayout(false); this.GroupBox9.ResumeLayout(false);
@ -2141,7 +2128,6 @@ namespace ImageCatalog
internal Panel Panel3; internal Panel Panel3;
internal RadioButton rdbNuovoMetodo; internal RadioButton rdbNuovoMetodo;
internal RadioButton rdbVecchioMetodo; internal RadioButton rdbVecchioMetodo;
internal CheckBox CheckBox2;
internal CheckBox chkSovrascriviFile; internal CheckBox chkSovrascriviFile;
private Button _btnCreaCatalogoAsync; private Button _btnCreaCatalogoAsync;
private Timer timer1; private Timer timer1;

View file

@ -500,6 +500,9 @@ namespace ImageCatalog
Module1.SetupIni.AggiornaParametro("NumTempoSmall", RadioButton7.Checked); Module1.SetupIni.AggiornaParametro("NumTempoSmall", RadioButton7.Checked);
Module1.SetupIni.AggiornaParametro("CompressioneJpeg", TextBox32.Text); Module1.SetupIni.AggiornaParametro("CompressioneJpeg", TextBox32.Text);
Module1.SetupIni.AggiornaParametro("CompressioneJpegMiniatura", TextBox33.Text); Module1.SetupIni.AggiornaParametro("CompressioneJpegMiniatura", TextBox33.Text);
// 2021
Module1.SetupIni.AggiornaParametro("ChunkSize", TextBox8.Text);
Module1.SetupIni.AggiornaParametro("ThreadsCount", TextBox7.Text);
Module1.SetupIni.SalvaParametriSetup(); Module1.SetupIni.SalvaParametriSetup();
Text = "Image Catalog - " + LeggiSoloNomeFile(IlNome); Text = "Image Catalog - " + LeggiSoloNomeFile(IlNome);
} }
@ -601,6 +604,11 @@ namespace ImageCatalog
} }
Text = "Image Catalog - " + LeggiSoloNomeFile(IlNome); Text = "Image Catalog - " + LeggiSoloNomeFile(IlNome);
// 2021
TextBox8.Text = Module1.SetupIni.LeggiParametroString("ChunkSize");
TextBox7.Text = Module1.SetupIni.LeggiParametroString("ThreadsCount");
} }
} }