ColorChooserForm - a bit of cleanup

This commit is contained in:
adelikat 2020-11-28 10:04:24 -06:00
parent 3be90efd57
commit 342164d05c
2 changed files with 14 additions and 19 deletions

View File

@ -190,7 +190,6 @@
this.OK.TabIndex = 22;
this.OK.Text = "&OK";
this.OK.UseVisualStyleBackColor = true;
this.OK.Click += new System.EventHandler(this.Ok_Click);
//
// Cancel
//

View File

@ -89,32 +89,32 @@ namespace BizHawk.Client.EmuHawk
private void Panel12_DoubleClick(object sender, EventArgs e)
{
Panel psender = (Panel)sender;
Panel panel = (Panel)sender;
int i;
if (psender == panel1)
if (panel == panel1)
i = 0;
else if (psender == panel2)
else if (panel == panel2)
i = 1;
else if (psender == panel3)
else if (panel == panel3)
i = 2;
else if (psender == panel4)
else if (panel == panel4)
i = 3;
else if (psender == panel5)
else if (panel == panel5)
i = 4;
else if (psender == panel6)
else if (panel == panel6)
i = 5;
else if (psender == panel7)
else if (panel == panel7)
i = 6;
else if (psender == panel8)
else if (panel == panel8)
i = 7;
else if (psender == panel9)
else if (panel == panel9)
i = 8;
else if (psender == panel10)
else if (panel == panel10)
i = 9;
else if (psender == panel11)
else if (panel == panel11)
i = 10;
else if (psender == panel12)
else if (panel == panel12)
i = 11;
else
return; // i = -1;
@ -145,7 +145,7 @@ namespace BizHawk.Client.EmuHawk
if (_colors[i] != dlg.Color)
{
_colors[i] = dlg.Color;
psender.BackColor = _colors[i];
panel.BackColor = _colors[i];
}
}
}
@ -344,10 +344,6 @@ namespace BizHawk.Client.EmuHawk
}
}
private void Ok_Click(object sender, EventArgs e)
{
}
private void DefaultButton_Click(object sender, EventArgs e)
{
SetAllColors(DefaultDMGColors);