src/Misc/EFTools/XmlCore/UI/ViewModels/Explorer/ExplorerSearchResults.cs
/// <summary>
///     If the element being removed is part of the Search Results then
///     removes it from the Search Results list
/// </summary>
/// <param name="elementToBeRemoved">element to be removed</param>
/// <returns>whether removal was successful</returns>
If the element being removed is part of the Search Results then
removes it from the Search Results list
If the element being removed is part of the Search Results then removes it from the Search Results list
internal bool RemoveElementFromSearchResults(ExplorerEFElement elementToBeRemoved)
        {
            if (null == elementToBeRemoved)
            {
                Debug.Fail(
                    typeof(ExplorerSearchResults).Name + ".RemoveElementFromSearchResults() received null elementToBeRemoved");
                return false;
            }
            if (elementToBeRemoved.IsInSearchResults)
            {
                elementToBeRemoved.IsInSearchResults = false;
                return _results.Remove(elementToBeRemoved);
            }
            return false;
        }
internal bool RemoveElementFromSearchResults ( ExplorerEFElement elementToBeRemoved ) { if ( null == elementToBeRemoved ) { Debug . Fail ( typeof ( ExplorerSearchResults ) . Name + " " ) ; return false ; } if ( elementToBeRemoved . IsInSearchResults ) { elementToBeRemoved . IsInSearchResults = false ; return _results . Remove ( elementToBeRemoved ) ; } return false ; }
If the element being removed is part of the Search Results then
removes it from the Search Results list
If the element being removed is part of the Search Results then removes it from the Search Results list
whether removal was successful
whether removal was successful
elementToBeRemoved
ExplorerEFElement
element to be removed
element to be removed