/// <summary> /// Creates a new shelf. /// </summary> private Shelf CreateShelf(ShelfCreationArgs args) { IShelfFactory factory = CollectionUtils.FirstElement <IShelfFactory>( (new ShelfFactoryExtensionPoint()).CreateExtensions()) ?? new DefaultShelfFactory(); return(factory.CreateShelf(args, _owner)); }
public ShelfCreator(IServices services, IViews views, Transform transform) { this.services = services; this.views = views; this.shelvesTransform = transform; Shelves = new Dictionary <string, List <IShelf> >(); factory = new ShelfFactory(services, views); }