diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-06 05:58:08 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-10-06 05:58:08 +0300 |
commit | a45674adbbe6c83989c31b2d9192d729ce2c0ad2 (patch) | |
tree | da2ce26c620ae75738ec3823fc5b2fee9c6669db /SearchForm.cs | |
parent | 2f3c36218b419b547f2166bd3a3d973246858e33 (diff) |
CheckBoxList replaced with ListView, group actions added. Release candindate #2.
Diffstat (limited to 'SearchForm.cs')
-rw-r--r-- | SearchForm.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/SearchForm.cs b/SearchForm.cs index 15ae4fdf..5acf6988 100644 --- a/SearchForm.cs +++ b/SearchForm.cs @@ -17,11 +17,13 @@ namespace com.clusterrr.hakchi_gui {
if (textBoxSearch.Text.Length > 0)
{
- for (int i = 1; i < mainForm.checkedListBoxGames.Items.Count; i++)
- if ((mainForm.checkedListBoxGames.Items[i] as NesMiniApplication).Name.
+ for (int i = 1; i < mainForm.listViewGames.Items.Count; i++)
+ if ((mainForm.listViewGames.Items[i].Tag as NesMiniApplication).Name.
ToLower().StartsWith(textBoxSearch.Text.ToLower()))
{
- mainForm.checkedListBoxGames.SelectedIndex = i;
+ for (int j = 1; j < mainForm.listViewGames.Items.Count; j++)
+ mainForm.listViewGames.Items[j].Selected = i == j;
+ mainForm.listViewGames.EnsureVisible(i);
break;
}
}
|