Example #1
0
 public AddOrChangePageApi(TemplateInsertionCommand templateInsertionCommand,
                           PageRefreshEvent pageRefreshEvent,
                           PageSelection pageSelection,
                           SourceCollectionsList sourceCollectionsList)
 {
     _templateInsertionCommand = templateInsertionCommand;
     _pageRefreshEvent         = pageRefreshEvent;
     _pageSelection            = pageSelection;
     _sourceCollectionsList    = sourceCollectionsList;
 }
        public static bool ForPageLayout = false;         // set when most recent relevant command is ShowChangeLayoutDialog

        public PageTemplatesApi(SourceCollectionsList sourceCollectionsList, BookSelection bookSelection,
                                PageSelection pageSelection, TemplateInsertionCommand templateInsertionCommand,
                                BookThumbNailer thumbNailer, Book.Book.Factory bookFactory, BookStorage.Factory storageFactory)
        {
            _sourceCollectionsList    = sourceCollectionsList;
            _bookSelection            = bookSelection;
            _pageSelection            = pageSelection;
            _templateInsertionCommand = templateInsertionCommand;
            _thumbNailer    = thumbNailer;
            _bookFactory    = bookFactory;
            _storageFactory = storageFactory;
        }