Hex Find - even more simple

This commit is contained in:
adelikat 2015-01-31 01:23:03 +00:00
parent 8b48bd3e26
commit 29a6c7369b
1 changed files with 9 additions and 15 deletions

View File

@ -71,23 +71,17 @@ namespace BizHawk.Client.EmuHawk
var size = FindBox.Size;
Controls.Remove(FindBox);
if (HexRadio.Checked)
{
FindBox = new HexTextBox
{
CharacterCasing = CharacterCasing.Upper,
Nullable = true
};
}
else
{
FindBox = new TextBox { CharacterCasing = CharacterCasing.Normal };
}
FindBox.Text = text;
FindBox.Size = size;
FindBox = new HexTextBox
{
CharacterCasing = CharacterCasing.Upper,
Nullable = HexRadio.Checked,
Text = text,
Size = size,
Location = location
};
Controls.Add(FindBox);
FindBox.Location = location;
}
private void HexRadio_CheckedChanged(object sender, EventArgs e)