public override void AddModule() { PageCompositor.Clear(); PageCompositor.Add(new TechnicalModuleImpl()); PageCompositor.Add(new PictureModuleImpl()); PageCompositor.Add(new InstructionModuleImpl()); }
public ReadController(IBookView page, string bookId, IBookRepository bookRepository, int offset = 0) { _data = new BookData(bookId); _bookView = page; _offset = offset; _bookRepository = bookRepository; _bookModel = _bookRepository.Get(bookId); _images = _data.LoadImages().ToList(); _pageLoader = new PageCompositor(_bookModel, (int)(AppSettings.Default.FontSettings.FontSize), new Size(page.GetSize().Width - AppSettings.Default.Margin.Left - AppSettings.Default.Margin.Right, page.GetSize().Height - AppSettings.Default.Margin.Top - AppSettings.Default.Margin.Bottom), _images); BookId = bookId; }
public override void AddModule() { PageCompositor.Clear(); PageCompositor.Add(new FeaturesModuleImpl()); PageCompositor.Add(new PictureModuleImpl()); }