Ram Search - DoPreview() function implemented (but not hooked up)
This commit is contained in:
parent
0f9c38f50b
commit
2498342849
|
@ -423,6 +423,16 @@ namespace BizHawk.MultiClient
|
||||||
|
|
||||||
private void SearchListView_QueryItemBkColor(int index, int column, ref Color color)
|
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
|
//TODO: make background pink on items that would be removed if search button were clicked
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -493,6 +503,15 @@ namespace BizHawk.MultiClient
|
||||||
weededList.Clear();
|
weededList.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void DoPreview()
|
||||||
|
{
|
||||||
|
if (GenerateWeedOutList())
|
||||||
|
{
|
||||||
|
DisplaySearchList();
|
||||||
|
OutputLabel.Text = MakeAddressString(weededList.Count) + "would be removed";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void DoSearch()
|
private void DoSearch()
|
||||||
{
|
{
|
||||||
if (GenerateWeedOutList())
|
if (GenerateWeedOutList())
|
||||||
|
|
Loading…
Reference in New Issue