mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-01-23 13:18:28 -05:00
- Use the main display grid control to display deleted books - Added search functionality for deleted books. This required creating a temporary search index in the `InProgress` folder. The products grid control now uses an instance of `ISearchEngine` to filter its grid entries. The main grid uses a singleton instance of `MainSearchEngine`, which merely wraps `SearchEngineCommands.Search()`. The TrashBinDialogs use `TempSearchEngine`. - Users can now batch select `Everyting` as well as `Audible Plus Books` Avalonia: - Refactor main grid context menus to no longer require reflection
17 lines
524 B
C#
17 lines
524 B
C#
using LibationSearchEngine;
|
|
|
|
#nullable enable
|
|
namespace ApplicationServices;
|
|
|
|
/// <summary>
|
|
/// The main search engine used Libation.
|
|
/// Acts as an adapter to SearchEngineCommands.Search()
|
|
/// </summary>
|
|
public class MainSearchEngine : ISearchEngine
|
|
{
|
|
public static MainSearchEngine Instance { get; } = new MainSearchEngine();
|
|
private MainSearchEngine() { }
|
|
public SearchResultSet? GetSearchResultSet(string? searchString)
|
|
=> string.IsNullOrEmpty(searchString) ? null : SearchEngineCommands.Search(searchString);
|
|
}
|