Changed Changing some delegate defs to use EventHandler<> instead.

Took out some EventHandler new s that were from old code
Now Provider code
Create Folder in library and working some in provider.
New tests in MatterSlice
This commit is contained in:
Lars Brubaker 2015-06-24 16:59:10 -07:00
parent edbcbd5cd1
commit f6d32a62a5
17 changed files with 234 additions and 55 deletions

View file

@ -121,7 +121,13 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider
public override void AddCollectionToLibrary(string collectionName)
{
throw new NotImplementedException();
string directoryPath = Path.Combine(rootPath, currentDirectory, collectionName);
if (!Directory.Exists(directoryPath))
{
Directory.CreateDirectory(directoryPath);
GetFilesInCurrentDirectory();
LibraryProvider.OnDataReloaded(null);
}
}
public override void AddFilesToLibrary(IList<string> files, List<ProviderLocatorNode> providerLocator, ReportProgressRatio reportProgress = null, RunWorkerCompletedEventHandler callback = null)