Made PrintItemWrapper able to take a containing LibraryPrivider handle

Made the providers pass themselves when building PrintItemWrappers
Fixed the bug with print history not setting the correct item to print
Took out LibrarySQLiteData (not replaced with LibraryProviderSQLite)
Made code go through the new SQLite provider to add parts during setup
Starting work on Save as Window to save to queue or provider and do provider selection
This commit is contained in:
Lars Brubaker 2015-07-20 16:09:52 -07:00
parent a0d4c68ae4
commit 5f4ea81a4c
12 changed files with 48 additions and 427 deletions

View file

@ -181,7 +181,7 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider
{
string fileName = currentDirectoryFiles[itemIndex];
return new PrintItemWrapper(new DataStorage.PrintItem(Path.GetFileNameWithoutExtension(fileName), fileName));
return new PrintItemWrapper(new DataStorage.PrintItem(Path.GetFileNameWithoutExtension(fileName), fileName), this);
}
public override LibraryProvider GetProviderForItem(PrintItemCollection collection)