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:
parent
edbcbd5cd1
commit
f6d32a62a5
17 changed files with 234 additions and 55 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue