From 29a6c7369b313d2f9ce3c4b5fd5b9eeb80e2542e Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 31 Jan 2015 01:23:03 +0000 Subject: [PATCH] Hex Find - even more simple --- .../tools/HexEditor/HexFind.cs | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/HexEditor/HexFind.cs b/BizHawk.Client.EmuHawk/tools/HexEditor/HexFind.cs index f7f08c7e87..f0ec436d22 100644 --- a/BizHawk.Client.EmuHawk/tools/HexEditor/HexFind.cs +++ b/BizHawk.Client.EmuHawk/tools/HexEditor/HexFind.cs @@ -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)