Renamed LibraryProviderPlugin

Moved more common functionality to LibraryProvider
This commit is contained in:
Lars Brubaker 2015-06-26 10:53:10 -07:00
parent 9b90242caa
commit 70a8460af7
6 changed files with 51 additions and 65 deletions

View file

@ -50,12 +50,11 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider
private string description;
private FileSystemWatcher directoryWatcher = new FileSystemWatcher();
private string keywordFilter = string.Empty;
private string parentProviderKey = null;
private string rootPath;
public LibraryProviderFileSystem(string rootPath, string description, string parentProviderKey)
: base(parentProviderKey)
{
this.parentProviderKey = parentProviderKey;
this.description = description;
this.rootPath = rootPath;
@ -82,19 +81,6 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider
}
}
public override bool HasParent
{
get
{
if (parentProviderKey != null)
{
return true;
}
return false;
}
}
public override int ItemCount
{
get
@ -176,9 +162,9 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider
{
if (currentDirectory == ".")
{
if (parentProviderKey != null)
if (ParentProviderKey != null)
{
return new PrintItemCollection("..", parentProviderKey);
return new PrintItemCollection("..", ParentProviderKey);
}
else
{