Made Action setCurrentLibaryProvider common to all providers.
This commit is contained in:
parent
5c0272e77a
commit
2ae756f357
7 changed files with 27 additions and 29 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue