MessageConfig - use change event on numberics

This commit is contained in:
adelikat 2019-12-21 14:21:12 -06:00
parent e7160a7387
commit 8a96f5f2e7
2 changed files with 10 additions and 32 deletions

View File

@ -530,8 +530,7 @@
0,
0,
0});
this.XNumeric.Click += new System.EventHandler(this.XNumeric_Click);
this.XNumeric.KeyUp += new System.Windows.Forms.KeyEventHandler(this.XNumeric_KeyUp);
this.XNumeric.ValueChanged += new System.EventHandler(this.XNumeric_Changed);
//
// YNumeric
//
@ -550,8 +549,7 @@
0,
0,
0});
this.YNumeric.Click += new System.EventHandler(this.YNumeric_Click);
this.YNumeric.KeyUp += new System.Windows.Forms.KeyEventHandler(this.YNumeric_KeyUp);
this.YNumeric.ValueChanged += new System.EventHandler(this.YNumeric_Changed);
//
// label1
//

View File

@ -203,20 +203,6 @@ namespace BizHawk.Client.EmuHawk
SetPositionInfo();
}
private void XNumericChange()
{
_px = (int)XNumeric.Value;
SetPositionLabels();
PositionPanel.Refresh();
}
private void YNumericChange()
{
_py = (int)YNumeric.Value;
SetPositionLabels();
PositionPanel.Refresh();
}
private void PositionPanel_MouseEnter(object sender, EventArgs e)
{
Cursor = Cursors.Hand;
@ -484,14 +470,18 @@ namespace BizHawk.Client.EmuHawk
PositionPanel.Refresh();
}
private void XNumeric_Click(object sender, EventArgs e)
private void XNumeric_Changed(object sender, EventArgs e)
{
XNumericChange();
_px = (int)XNumeric.Value;
SetPositionLabels();
PositionPanel.Refresh();
}
private void YNumeric_Click(object sender, EventArgs e)
private void YNumeric_Changed(object sender, EventArgs e)
{
YNumericChange();
_py = (int)YNumeric.Value;
SetPositionLabels();
PositionPanel.Refresh();
}
private void ColorPanel_Click(object sender, EventArgs e)
@ -525,15 +515,5 @@ namespace BizHawk.Client.EmuHawk
SetColorBox();
}
}
private void XNumeric_KeyUp(object sender, KeyEventArgs e)
{
XNumericChange();
}
private void YNumeric_KeyUp(object sender, KeyEventArgs e)
{
YNumericChange();
}
}
}