Ram Search - DoPreview() function implemented (but not hooked up)

This commit is contained in:
andres.delikat 2011-02-22 14:55:18 +00:00
parent 0f9c38f50b
commit 2498342849
1 changed files with 19 additions and 0 deletions

View File

@ -423,6 +423,16 @@ namespace BizHawk.MultiClient
private void SearchListView_QueryItemBkColor(int index, int column, ref Color color)
{
//if (index % 2 == 0) color = Color.White; else color = Color.Pink;
if (weededList.Contains(searchList[index]))
{
color = Color.Pink;
}
else
color = Color.White;
//TODO: make background pink on items that would be removed if search button were clicked
}
@ -493,6 +503,15 @@ namespace BizHawk.MultiClient
weededList.Clear();
}
private void DoPreview()
{
if (GenerateWeedOutList())
{
DisplaySearchList();
OutputLabel.Text = MakeAddressString(weededList.Count) + "would be removed";
}
}
private void DoSearch()
{
if (GenerateWeedOutList())