Migration to MVVM

This commit is contained in:
MaddoScientisto 2026-02-04 19:48:03 +01:00
commit 1db874ce77
6 changed files with 946 additions and 575 deletions

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.CompilerServices;
@ -221,6 +221,7 @@ namespace ImageCatalog
//
// CheckBox22
//
CheckBox22.DataBindings.Add(new Binding("Checked", bindingSource1, "ShutdownSystem", true, DataSourceUpdateMode.OnPropertyChanged));
CheckBox22.AutoSize = true;
CheckBox22.Location = new Point(1168, 882);
CheckBox22.Margin = new Padding(6, 8, 6, 8);
@ -350,6 +351,7 @@ namespace ImageCatalog
//
// rdbNuovoMetodo
//
rdbNuovoMetodo.DataBindings.Add(new Binding("Checked", bindingSource1, "UseParallelProcessing", true, DataSourceUpdateMode.OnPropertyChanged));
rdbNuovoMetodo.AutoSize = true;
rdbNuovoMetodo.Checked = true;
rdbNuovoMetodo.Location = new Point(18, 69);
@ -363,6 +365,7 @@ namespace ImageCatalog
//
// rdbVecchioMetodo
//
rdbVecchioMetodo.DataBindings.Add(new Binding("Checked", bindingSource1, "UseSequentialProcessing", true, DataSourceUpdateMode.OnPropertyChanged));
rdbVecchioMetodo.AutoSize = true;
rdbVecchioMetodo.Location = new Point(18, 10);
rdbVecchioMetodo.Margin = new Padding(6, 8, 6, 8);
@ -413,6 +416,7 @@ namespace ImageCatalog
//
// chkAggiornaSottodirectory
//
chkAggiornaSottodirectory.DataBindings.Add(new Binding("Checked", bindingSource1, "UpdateSubdirectories", true, DataSourceUpdateMode.OnPropertyChanged));
chkAggiornaSottodirectory.ForeColor = Color.Black;
chkAggiornaSottodirectory.Location = new Point(174, 157);
chkAggiornaSottodirectory.Margin = new Padding(6, 8, 6, 8);
@ -429,7 +433,6 @@ namespace ImageCatalog
_Button3.Size = new Size(52, 50);
_Button3.TabIndex = 6;
_Button3.Text = "...";
_Button3.Click += Button3_Click;
//
// _Button2
//
@ -439,7 +442,6 @@ namespace ImageCatalog
_Button2.Size = new Size(52, 50);
_Button2.TabIndex = 5;
_Button2.Text = "...";
_Button2.Click += Button2_Click;
//
// Label1
//
@ -506,6 +508,7 @@ namespace ImageCatalog
//
// rdbNumFiles
//
rdbNumFiles.DataBindings.Add(new Binding("Checked", bindingSource1, "UseFileNumbering", true, DataSourceUpdateMode.OnPropertyChanged));
rdbNumFiles.ForeColor = Color.Black;
rdbNumFiles.Location = new Point(70, 315);
rdbNumFiles.Margin = new Padding(6, 8, 6, 8);
@ -516,6 +519,7 @@ namespace ImageCatalog
//
// rdbNumProgressiva
//
rdbNumProgressiva.DataBindings.Add(new Binding("Checked", bindingSource1, "UseProgressiveNumbering", true, DataSourceUpdateMode.OnPropertyChanged));
rdbNumProgressiva.Checked = true;
rdbNumProgressiva.ForeColor = Color.Black;
rdbNumProgressiva.Location = new Point(70, 275);
@ -528,6 +532,7 @@ namespace ImageCatalog
//
// txtCifreContatore
//
txtCifreContatore.DataBindings.Add(new Binding("Text", bindingSource1, "CounterDigits", true, DataSourceUpdateMode.OnPropertyChanged));
txtCifreContatore.Location = new Point(278, 216);
txtCifreContatore.Margin = new Padding(6, 8, 6, 8);
txtCifreContatore.Name = "txtCifreContatore";
@ -548,6 +553,7 @@ namespace ImageCatalog
//
// txtSuffissoCartelle
//
txtSuffissoCartelle.DataBindings.Add(new Binding("Text", bindingSource1, "FolderSuffix", true, DataSourceUpdateMode.OnPropertyChanged));
txtSuffissoCartelle.Location = new Point(122, 157);
txtSuffissoCartelle.Margin = new Padding(6, 8, 6, 8);
txtSuffissoCartelle.Name = "txtSuffissoCartelle";
@ -577,6 +583,7 @@ namespace ImageCatalog
//
// chkCreaSottocartelle
//
chkCreaSottocartelle.DataBindings.Add(new Binding("Checked", bindingSource1, "CreateSubfolders", true, DataSourceUpdateMode.OnPropertyChanged));
chkCreaSottocartelle.ForeColor = Color.Black;
chkCreaSottocartelle.Location = new Point(122, 40);
chkCreaSottocartelle.Margin = new Padding(6, 8, 6, 8);
@ -587,6 +594,7 @@ namespace ImageCatalog
//
// txtFilePerCartella
//
txtFilePerCartella.DataBindings.Add(new Binding("Text", bindingSource1, "FilesPerFolder", true, DataSourceUpdateMode.OnPropertyChanged));
txtFilePerCartella.Location = new Point(122, 99);
txtFilePerCartella.Margin = new Padding(6, 8, 6, 8);
txtFilePerCartella.Name = "txtFilePerCartella";
@ -633,6 +641,7 @@ namespace ImageCatalog
//
// chkRotazioneAutomatica
//
chkRotazioneAutomatica.DataBindings.Add(new Binding("Checked", bindingSource1, "AutomaticRotation", true, DataSourceUpdateMode.OnPropertyChanged));
chkRotazioneAutomatica.ForeColor = Color.Black;
chkRotazioneAutomatica.Location = new Point(34, 96);
chkRotazioneAutomatica.Margin = new Padding(6, 8, 6, 8);
@ -643,6 +652,7 @@ namespace ImageCatalog
//
// chkForzaJpg
//
chkForzaJpg.DataBindings.Add(new Binding("Checked", bindingSource1, "ForceJpeg", true, DataSourceUpdateMode.OnPropertyChanged));
chkForzaJpg.Checked = true;
chkForzaJpg.CheckState = CheckState.Checked;
chkForzaJpg.ForeColor = Color.Black;
@ -705,6 +715,7 @@ namespace ImageCatalog
//
// TextBox31
//
TextBox31.DataBindings.Add(new Binding("Text", bindingSource1, "VerticalTextMargin", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox31.Location = new Point(284, 114);
TextBox31.Margin = new Padding(6, 8, 6, 8);
TextBox31.Name = "TextBox31";
@ -713,6 +724,7 @@ namespace ImageCatalog
//
// TextBox30
//
TextBox30.DataBindings.Add(new Binding("Text", bindingSource1, "VerticalTextSize", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox30.Location = new Point(284, 54);
TextBox30.Margin = new Padding(6, 8, 6, 8);
TextBox30.Name = "TextBox30";
@ -734,6 +746,7 @@ namespace ImageCatalog
//
// CheckBox17
//
CheckBox17.DataBindings.Add(new Binding("Checked", bindingSource1, "ShowPhotoNumber", true, DataSourceUpdateMode.OnPropertyChanged));
CheckBox17.AutoSize = true;
CheckBox17.Location = new Point(208, 45);
CheckBox17.Margin = new Padding(6, 8, 6, 8);
@ -745,6 +758,7 @@ namespace ImageCatalog
//
// CheckBox16
//
CheckBox16.DataBindings.Add(new Binding("Checked", bindingSource1, "ShowDate", true, DataSourceUpdateMode.OnPropertyChanged));
CheckBox16.AutoSize = true;
CheckBox16.Location = new Point(13, 46);
CheckBox16.Margin = new Padding(6, 8, 6, 8);
@ -778,6 +792,7 @@ namespace ImageCatalog
//
// TextBox34
//
TextBox34.DataBindings.Add(new Binding("Text", bindingSource1, "TextColorRGB", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox34.Location = new Point(346, 224);
TextBox34.Margin = new Padding(6, 8, 6, 8);
TextBox34.Name = "TextBox34";
@ -794,7 +809,6 @@ namespace ImageCatalog
_Button8.Size = new Size(161, 59);
_Button8.TabIndex = 35;
_Button8.Text = "Scegli...";
_Button8.Click += Button8_Click;
//
// Label36
//
@ -809,6 +823,7 @@ namespace ImageCatalog
//
// TextBox25
//
TextBox25.DataBindings.Add(new Binding("Text", bindingSource1, "FontSizeThumbnail", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox25.Location = new Point(346, 146);
TextBox25.Margin = new Padding(6, 8, 6, 8);
TextBox25.Name = "TextBox25";
@ -829,6 +844,7 @@ namespace ImageCatalog
//
// ComboBox3
//
ComboBox3.DataBindings.Add(new Binding("Text", bindingSource1, "FontName", true, DataSourceUpdateMode.OnPropertyChanged));
ComboBox3.Location = new Point(208, 19);
ComboBox3.Margin = new Padding(6, 8, 6, 8);
ComboBox3.Name = "ComboBox3";
@ -838,6 +854,7 @@ namespace ImageCatalog
//
// TextBox11
//
TextBox11.DataBindings.Add(new Binding("Text", bindingSource1, "FontSize", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox11.Location = new Point(346, 86);
TextBox11.Margin = new Padding(6, 8, 6, 8);
TextBox11.Name = "TextBox11";
@ -870,6 +887,7 @@ namespace ImageCatalog
//
// CheckBox3
//
CheckBox3.DataBindings.Add(new Binding("Checked", bindingSource1, "FontBold", true, DataSourceUpdateMode.OnPropertyChanged));
CheckBox3.ForeColor = Color.Black;
CheckBox3.Location = new Point(486, 19);
CheckBox3.Margin = new Padding(6, 8, 6, 8);
@ -957,6 +975,7 @@ namespace ImageCatalog
//
// CheckBox8
//
CheckBox8.DataBindings.Add(new Binding("Checked", bindingSource1, "AddTime", true, DataSourceUpdateMode.OnPropertyChanged));
CheckBox8.ForeColor = Color.Black;
CheckBox8.Location = new Point(156, 384);
CheckBox8.Margin = new Padding(6, 8, 6, 8);
@ -967,6 +986,7 @@ namespace ImageCatalog
//
// TextBox9
//
TextBox9.DataBindings.Add(new Binding("Text", bindingSource1, "TextTransparency", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox9.Location = new Point(260, 266);
TextBox9.Margin = new Padding(6, 8, 6, 8);
TextBox9.Name = "TextBox9";
@ -976,6 +996,7 @@ namespace ImageCatalog
//
// CheckBox7
//
CheckBox7.DataBindings.Add(new Binding("Checked", bindingSource1, "AddRaceTime", true, DataSourceUpdateMode.OnPropertyChanged));
CheckBox7.ForeColor = Color.Black;
CheckBox7.Location = new Point(294, 384);
CheckBox7.Margin = new Padding(6, 8, 6, 8);
@ -1028,6 +1049,7 @@ namespace ImageCatalog
//
// ComboBox1
//
ComboBox1.DataBindings.Add(new Binding("Text", bindingSource1, "VerticalPosition", true, DataSourceUpdateMode.OnPropertyChanged));
ComboBox1.Location = new Point(156, 325);
ComboBox1.Margin = new Padding(6, 8, 6, 8);
ComboBox1.Name = "ComboBox1";
@ -1037,6 +1059,7 @@ namespace ImageCatalog
//
// ComboBox2
//
ComboBox2.DataBindings.Add(new Binding("Text", bindingSource1, "HorizontalAlignment", true, DataSourceUpdateMode.OnPropertyChanged));
ComboBox2.Location = new Point(814, 325);
ComboBox2.Margin = new Padding(6, 8, 6, 8);
ComboBox2.Name = "ComboBox2";
@ -1057,6 +1080,7 @@ namespace ImageCatalog
//
// TextBox12
//
TextBox12.DataBindings.Add(new Binding("Text", bindingSource1, "TextMargin", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox12.Location = new Point(814, 266);
TextBox12.Margin = new Padding(6, 8, 6, 8);
TextBox12.Name = "TextBox12";
@ -1120,6 +1144,7 @@ namespace ImageCatalog
//
// TextBox32
//
TextBox32.DataBindings.Add(new Binding("Text", bindingSource1, "JpegQuality", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox32.Location = new Point(156, 197);
TextBox32.Margin = new Padding(6, 8, 6, 8);
TextBox32.Name = "TextBox32";
@ -1160,6 +1185,7 @@ namespace ImageCatalog
//
// TextBox27
//
TextBox27.DataBindings.Add(new Binding("Text", bindingSource1, "PhotoBigWidth", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox27.Location = new Point(156, 59);
TextBox27.Margin = new Padding(6, 8, 6, 8);
TextBox27.Name = "TextBox27";
@ -1180,6 +1206,7 @@ namespace ImageCatalog
//
// TextBox28
//
TextBox28.DataBindings.Add(new Binding("Text", bindingSource1, "PhotoBigHeight", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox28.Location = new Point(156, 118);
TextBox28.Margin = new Padding(6, 8, 6, 8);
TextBox28.Name = "TextBox28";
@ -1189,6 +1216,7 @@ namespace ImageCatalog
//
// CheckBox15
//
CheckBox15.DataBindings.Add(new Binding("Checked", bindingSource1, "KeepOriginalDimensions", true, DataSourceUpdateMode.OnPropertyChanged));
CheckBox15.Checked = true;
CheckBox15.CheckState = CheckState.Checked;
CheckBox15.ForeColor = Color.Black;
@ -1234,7 +1262,6 @@ namespace ImageCatalog
_CheckBox18.TabIndex = 36;
_CheckBox18.Text = "Numero foto";
_CheckBox18.UseVisualStyleBackColor = true;
_CheckBox18.CheckedChanged += CheckBox18_CheckedChanged;
//
// _CheckBox4
//
@ -1245,7 +1272,6 @@ namespace ImageCatalog
_CheckBox4.Size = new Size(226, 42);
_CheckBox4.TabIndex = 34;
_CheckBox4.Text = "Aggiungi scritta";
_CheckBox4.CheckedChanged += CheckBox4_CheckedChanged;
//
// _CheckBox12
//
@ -1256,7 +1282,6 @@ namespace ImageCatalog
_CheckBox12.Size = new Size(226, 51);
_CheckBox12.TabIndex = 35;
_CheckBox12.Text = "Aggiungi orario";
_CheckBox12.CheckedChanged += CheckBox12_CheckedChanged;
//
// GroupBox1
//
@ -1292,6 +1317,7 @@ namespace ImageCatalog
//
// TextBox33
//
TextBox33.DataBindings.Add(new Binding("Text", bindingSource1, "JpegQualityThumbnail", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox33.Location = new Point(528, 99);
TextBox33.Margin = new Padding(6, 8, 6, 8);
TextBox33.Name = "TextBox33";
@ -1384,6 +1410,7 @@ namespace ImageCatalog
//
// TextBox5
//
TextBox5.DataBindings.Add(new Binding("Text", bindingSource1, "ThumbnailWidth", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox5.Location = new Point(156, 157);
TextBox5.Margin = new Padding(6, 8, 6, 8);
TextBox5.Name = "TextBox5";
@ -1404,6 +1431,7 @@ namespace ImageCatalog
//
// TextBox6
//
TextBox6.DataBindings.Add(new Binding("Text", bindingSource1, "ThumbnailHeight", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox6.Location = new Point(156, 216);
TextBox6.Margin = new Padding(6, 8, 6, 8);
TextBox6.Name = "TextBox6";
@ -1424,6 +1452,7 @@ namespace ImageCatalog
//
// TextBox3
//
TextBox3.DataBindings.Add(new Binding("Text", bindingSource1, "ThumbnailPrefix", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox3.Location = new Point(156, 99);
TextBox3.Margin = new Padding(6, 8, 6, 8);
TextBox3.Name = "TextBox3";
@ -1433,6 +1462,7 @@ namespace ImageCatalog
//
// CheckBox1
//
CheckBox1.DataBindings.Add(new Binding("Checked", bindingSource1, "CreateThumbnails", true, DataSourceUpdateMode.OnPropertyChanged));
CheckBox1.ForeColor = Color.Black;
CheckBox1.Location = new Point(156, 40);
CheckBox1.Margin = new Padding(6, 8, 6, 8);
@ -1505,11 +1535,10 @@ namespace ImageCatalog
_PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
_PictureBox1.TabIndex = 43;
_PictureBox1.TabStop = false;
_PictureBox1.MouseMove += PictureBox1_MouseMove;
_PictureBox1.MouseUp += PictureBox1_MouseUp;
//
// ComboBox5
//
ComboBox5.DataBindings.Add(new Binding("Text", bindingSource1, "LogoVerticalPosition", true, DataSourceUpdateMode.OnPropertyChanged));
ComboBox5.Location = new Point(312, 413);
ComboBox5.Margin = new Padding(6, 8, 6, 8);
ComboBox5.Name = "ComboBox5";
@ -1519,6 +1548,7 @@ namespace ImageCatalog
//
// ComboBox4
//
ComboBox4.DataBindings.Add(new Binding("Text", bindingSource1, "LogoHorizontalPosition", true, DataSourceUpdateMode.OnPropertyChanged));
ComboBox4.Location = new Point(312, 355);
ComboBox4.Margin = new Padding(6, 8, 6, 8);
ComboBox4.Name = "ComboBox4";
@ -1528,6 +1558,7 @@ namespace ImageCatalog
//
// TextBox19
//
TextBox19.DataBindings.Add(new Binding("Text", bindingSource1, "LogoTransparency", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox19.Location = new Point(312, 237);
TextBox19.Margin = new Padding(6, 8, 6, 8);
TextBox19.Name = "TextBox19";
@ -1548,6 +1579,7 @@ namespace ImageCatalog
//
// CheckBox5
//
CheckBox5.DataBindings.Add(new Binding("Checked", bindingSource1, "AddLogo", true, DataSourceUpdateMode.OnPropertyChanged));
CheckBox5.ForeColor = Color.Black;
CheckBox5.Location = new Point(0, 64);
CheckBox5.Margin = new Padding(6, 8, 6, 8);
@ -1558,6 +1590,7 @@ namespace ImageCatalog
//
// TextBox15
//
TextBox15.DataBindings.Add(new Binding("Text", bindingSource1, "LogoHeight", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox15.Location = new Point(312, 178);
TextBox15.Margin = new Padding(6, 8, 6, 8);
TextBox15.Name = "TextBox15";
@ -1567,6 +1600,7 @@ namespace ImageCatalog
//
// TextBox14
//
TextBox14.DataBindings.Add(new Binding("Text", bindingSource1, "LogoWidth", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox14.Location = new Point(312, 118);
TextBox14.Margin = new Padding(6, 8, 6, 8);
TextBox14.Name = "TextBox14";
@ -1588,6 +1622,7 @@ namespace ImageCatalog
//
// TextBox16
//
TextBox16.DataBindings.Add(new Binding("Text", bindingSource1, "LogoMargin", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox16.Location = new Point(312, 296);
TextBox16.Margin = new Padding(6, 8, 6, 8);
TextBox16.Name = "TextBox16";
@ -1639,10 +1674,10 @@ namespace ImageCatalog
_Button4.Size = new Size(52, 50);
_Button4.TabIndex = 8;
_Button4.Text = "...";
_Button4.Click += Button4_Click;
//
// TextBox10
//
TextBox10.DataBindings.Add(new Binding("Text", bindingSource1, "LogoFile", true, DataSourceUpdateMode.OnPropertyChanged));
TextBox10.Location = new Point(312, 59);
TextBox10.Margin = new Padding(6, 8, 6, 8);
TextBox10.Name = "TextBox10";
@ -1695,7 +1730,6 @@ namespace ImageCatalog
_Label27.TabIndex = 62;
_Label27.Text = "Versione 2.2 2021";
_Label27.TextAlign = ContentAlignment.MiddleRight;
_Label27.Click += Label27_Click;
//
// _Button7
//
@ -1719,7 +1753,6 @@ namespace ImageCatalog
_Button5.Size = new Size(416, 78);
_Button5.TabIndex = 60;
_Button5.Text = "Salva impostazioni";
_Button5.Click += Button5_Click;
//
// Label20
//
@ -1785,7 +1818,6 @@ namespace ImageCatalog
_Button6.Size = new Size(416, 78);
_Button6.TabIndex = 54;
_Button6.Text = "Carica impostazioni";
_Button6.Click += Button6_Click;
//
// _btnCreaCatalogoAsync
//
@ -1894,16 +1926,7 @@ namespace ImageCatalog
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
if (_Button3 != null)
{
_Button3.Click -= Button3_Click;
}
_Button3 = value;
if (_Button3 != null)
{
_Button3.Click += Button3_Click;
}
}
}
@ -1920,16 +1943,7 @@ namespace ImageCatalog
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
if (_Button2 != null)
{
_Button2.Click -= Button2_Click;
}
_Button2 = value;
if (_Button2 != null)
{
_Button2.Click += Button2_Click;
}
}
}
@ -1975,16 +1989,7 @@ namespace ImageCatalog
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
if (_Button8 != null)
{
_Button8.Click -= Button8_Click;
}
_Button8 = value;
if (_Button8 != null)
{
_Button8.Click += Button8_Click;
}
}
}
@ -2040,16 +2045,7 @@ namespace ImageCatalog
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
if (_CheckBox18 != null)
{
_CheckBox18.CheckedChanged -= CheckBox18_CheckedChanged;
}
_CheckBox18 = value;
if (_CheckBox18 != null)
{
_CheckBox18.CheckedChanged += CheckBox18_CheckedChanged;
}
}
}
@ -2066,16 +2062,7 @@ namespace ImageCatalog
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
if (_CheckBox4 != null)
{
_CheckBox4.CheckedChanged -= CheckBox4_CheckedChanged;
}
_CheckBox4 = value;
if (_CheckBox4 != null)
{
_CheckBox4.CheckedChanged += CheckBox4_CheckedChanged;
}
}
}
@ -2092,16 +2079,7 @@ namespace ImageCatalog
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
if (_CheckBox12 != null)
{
_CheckBox12.CheckedChanged -= CheckBox12_CheckedChanged;
}
_CheckBox12 = value;
if (_CheckBox12 != null)
{
_CheckBox12.CheckedChanged += CheckBox12_CheckedChanged;
}
}
}
@ -2137,18 +2115,7 @@ namespace ImageCatalog
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
if (_PictureBox1 != null)
{
_PictureBox1.MouseMove -= PictureBox1_MouseMove;
_PictureBox1.MouseUp -= PictureBox1_MouseUp;
}
_PictureBox1 = value;
if (_PictureBox1 != null)
{
_PictureBox1.MouseMove += PictureBox1_MouseMove;
_PictureBox1.MouseUp += PictureBox1_MouseUp;
}
}
}
@ -2177,16 +2144,7 @@ namespace ImageCatalog
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
if (_Button4 != null)
{
_Button4.Click -= Button4_Click;
}
_Button4 = value;
if (_Button4 != null)
{
_Button4.Click += Button4_Click;
}
}
}
@ -2207,16 +2165,7 @@ namespace ImageCatalog
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
if (_Label27 != null)
{
_Label27.Click -= Label27_Click;
}
_Label27 = value;
if (_Label27 != null)
{
_Label27.Click += Label27_Click;
}
}
}
@ -2235,16 +2184,7 @@ namespace ImageCatalog
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
if (_Button5 != null)
{
_Button5.Click -= Button5_Click;
}
_Button5 = value;
if (_Button5 != null)
{
_Button5.Click += Button5_Click;
}
}
}
@ -2291,16 +2231,7 @@ namespace ImageCatalog
[MethodImpl(MethodImplOptions.Synchronized)]
set
{
if (_Button6 != null)
{
_Button6.Click -= Button6_Click;
}
_Button6 = value;
if (_Button6 != null)
{
_Button6.Click += Button6_Click;
}
}
}