Various Ram Search dialog fixes

This commit is contained in:
adelikat 2013-11-23 21:19:52 +00:00
parent a7a28c000a
commit b42492ec02
2 changed files with 15 additions and 1 deletions

View File

@ -2,6 +2,7 @@
using System.Globalization; using System.Globalization;
using System.Windows.Forms; using System.Windows.Forms;
using BizHawk.Common;
using BizHawk.Client.Common; using BizHawk.Client.Common;
namespace BizHawk.Client.EmuHawk namespace BizHawk.Client.EmuHawk
@ -239,6 +240,8 @@ namespace BizHawk.Client.EmuHawk
{ {
ResetText(); ResetText();
} }
base.OnTextChanged(e);
} }
public int? ToRawInt() public int? ToRawInt()

View File

@ -114,6 +114,7 @@ namespace BizHawk.Client.EmuHawk
DoDomainSizeCheck(); DoDomainSizeCheck();
SetReboot(false); SetReboot(false);
SpecificAddressBox.SetHexProperties(Settings.Domain.Size);
SpecificValueBox.ResetText(); SpecificValueBox.ResetText();
SpecificAddressBox.ResetText(); SpecificAddressBox.ResetText();
NumberOfChangesBox.ResetText(); NumberOfChangesBox.ResetText();
@ -127,6 +128,9 @@ namespace BizHawk.Client.EmuHawk
SetToFastMode(); SetToFastMode();
} }
NewSearch(); NewSearch();
} }
@ -699,16 +703,19 @@ namespace BizHawk.Client.EmuHawk
private void SetComparisonOperator(RamSearchEngine.ComparisonOperator op) private void SetComparisonOperator(RamSearchEngine.ComparisonOperator op)
{ {
Searches.Operator = op; Searches.Operator = op;
WatchListView.Refresh();
} }
private void SetCompareTo(RamSearchEngine.Compare comp) private void SetCompareTo(RamSearchEngine.Compare comp)
{ {
Searches.CompareTo = comp; Searches.CompareTo = comp;
WatchListView.Refresh();
} }
private void SetCompareValue(int? value) private void SetCompareValue(int? value)
{ {
Searches.CompareValue = value; Searches.CompareValue = value;
WatchListView.Refresh();
} }
private void SetReboot(bool rebootNeeded) private void SetReboot(bool rebootNeeded)
@ -1615,7 +1622,7 @@ namespace BizHawk.Client.EmuHawk
private void DifferentByRadio_Click(object sender, EventArgs e) private void DifferentByRadio_Click(object sender, EventArgs e)
{ {
DifferentByBox.Enabled = true; DifferentByBox.Enabled = true;
SetComparisonOperator(RamSearchEngine.ComparisonOperator.DifferentBy);
if (String.IsNullOrWhiteSpace(DifferentByBox.Text)) if (String.IsNullOrWhiteSpace(DifferentByBox.Text))
{ {
DifferentByBox.ResetText(); DifferentByBox.ResetText();
@ -1626,6 +1633,8 @@ namespace BizHawk.Client.EmuHawk
{ {
DifferentByBox.Focus(); DifferentByBox.Focus();
} }
SetComparisonOperator(RamSearchEngine.ComparisonOperator.DifferentBy);
} }
private void DifferentByBox_TextChanged(object sender, EventArgs e) private void DifferentByBox_TextChanged(object sender, EventArgs e)
@ -1638,6 +1647,8 @@ namespace BizHawk.Client.EmuHawk
{ {
Searches.DifferentBy = null; Searches.DifferentBy = null;
} }
WatchListView.Refresh();
} }
#endregion #endregion