Change from KeywordFilter property to ICustomSearch

This commit is contained in:
John Lewin 2018-12-21 18:35:59 -08:00
parent 28333b5926
commit f88b04b7bc
11 changed files with 78 additions and 47 deletions

View file

@ -35,12 +35,17 @@ using MatterHackers.DataConverters3D;
namespace MatterHackers.MatterControl.Library
{
public interface ICustomSearch
{
void ApplyFilter(string filter, ILibraryContext libraryContext);
void ClearFilter();
}
public interface ILibraryContainer : IDisposable
{
string ID { get; }
string Name { get; }
string StatusMessage { get; }
string KeywordFilter { get; set; }
bool IsProtected { get; }
Type DefaultView { get; }
@ -49,6 +54,7 @@ namespace MatterHackers.MatterControl.Library
List<ILibraryContainerLink> ChildContainers { get; }
List<ILibraryItem> Items { get; }
ICustomSearch CustomSearch { get; }
ILibraryContainer Parent { get; set; }