Skip to content

Commit 2ba072a

Browse files
committed
Rename method
1 parent 09f5423 commit 2ba072a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

RetailCoder.VBE/Navigation/CodeExplorer/CodeExplorerViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,15 +577,15 @@ public Visibility EmptyUIRefreshMessageVisibility
577577
}
578578
}
579579

580-
public void Search(IEnumerable<CodeExplorerItemViewModel> nodes, string searchString)
580+
public void FilterByName(IEnumerable<CodeExplorerItemViewModel> nodes, string searchString)
581581
{
582582
foreach (var item in nodes)
583583
{
584584
if (item == null) { continue; }
585585

586586
if (item.Items.Any())
587587
{
588-
Search(item.Items, searchString);
588+
FilterByName(item.Items, searchString);
589589
}
590590

591591
item.IsVisible = item.Items.Any(c => c.IsVisible) ||

RetailCoder.VBE/UI/CodeExplorer/CodeExplorerControl.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private void TreeView_OnMouseRightButtonDown(object sender, MouseButtonEventArgs
3434

3535
private void SearchBox_OnTextChanged(object sender, TextChangedEventArgs e)
3636
{
37-
ViewModel.Search(ViewModel.Projects, ((TextBox)sender).Text);
37+
ViewModel.FilterByName(ViewModel.Projects, ((TextBox)sender).Text);
3838
}
3939

4040
private void SearchIcon_OnMouseDown(object sender, MouseButtonEventArgs e)

0 commit comments

Comments
 (0)