GUI/Controls/TreeViewWithSearchResults.cs
/// <summary>
/// Performs a search for the entered text and search types. Before a search is performed, the contents of the ListView (previous search results) are cleared.
/// Results of whatever search function is used are displayed in the ListView with name, file size, and file type.
/// </summary>
/// <param name="searchText">Value to search for in the TreeView. Matching on this value is based on the search type.</param>
/// <param name="selectedSearchType">Determines the matching of the value. For example, full/partial text search or full path search.</param>
Performs a search for the entered text and search types. Before a search is performed, the contents of the ListView (previous search results) are cleared.
Results of whatever search function is used are displayed in the ListView with name, file size, and file type.
Performs a search for the entered text and search types . Before a search is performed the contents of the ListView ( previous search results ) are cleared . Results of whatever search function is used are displayed in the ListView with name file size and file type .
internal void SearchAndFillResults(string searchText, SearchType selectedSearchType)
        {
            mainListView.Items.Clear();
            var results = mainTreeView.Search(searchText, selectedSearchType);
            foreach (var node in results)
            {
                AddNodeToListView(node);
            }
            ResizeListViewColumns();
        }
internal void SearchAndFillResults ( string searchText , SearchType selectedSearchType ) { mainListView . Items . Clear ( ) ; var results = mainTreeView . Search ( searchText , selectedSearchType ) ; foreach ( var node in results ) { AddNodeToListView ( node ) ; } ResizeListViewColumns ( ) ; }
Performs a search for the entered text and search types.
Performs a search for the entered text and search types .
searchText
string
Value to search for in the TreeView. Matching on this value is based on the search type.
Value to search for in the TreeView . Matching on this value is based on the search type .
selectedSearchType
SearchType
Determines the matching of the value. For example, full/partial text search or full path search.
Determines the matching of the value . For example full / partial text search or full path search .