Made Action setCurrentLibaryProvider common to all providers.

This commit is contained in:
Lars Brubaker 2015-09-02 11:05:50 -07:00
parent 5c0272e77a
commit 2ae756f357
7 changed files with 27 additions and 29 deletions

View file

@ -44,12 +44,15 @@ namespace MatterHackers.MatterControl.PrintLibrary.Provider
{
public abstract class LibraryProvider : IDisposable
{
protected Action<LibraryProvider> SetCurrentLibraryProvider { get; private set; }
protected Dictionary<int, ProgressPlug> itemReportProgressHandlers = new Dictionary<int, ProgressPlug>();
private LibraryProvider parentLibraryProvider = null;
public LibraryProvider(LibraryProvider parentLibraryProvider)
public LibraryProvider(LibraryProvider parentLibraryProvider, Action<LibraryProvider> setCurrentLibraryProvider)
{
this.SetCurrentLibraryProvider = setCurrentLibraryProvider;
this.parentLibraryProvider = parentLibraryProvider;
}