public ReadController(IBookView page, BookModel book, string bookId, int offset = 0) { var data = new BookData(bookId); _bookView = page; _offset = offset; _bookModel = book; _images = data.LoadImages().ToList(); _pageLoader = new PageCompositor(_bookModel, (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 BookController(IBookView bookView, IBookAddView addView, IBookService service, IBookSearchView search) { this.view = bookView; this.addView = addView; this.service = service; this.search = search; this.search.SetController(this); this.view.SetController(this); this.addView.SetController(this); }
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 BookController(IBookAddView addBookView, IBookSearchView bookSearchView, IBookService bookService, IBookView bookView) { this.addBookView = addBookView; this.bookSearchView = bookSearchView; this.bookService = bookService; this.bookView = bookView; this.bookView.SetController(this); this.addBookView.SetController(this); this.bookSearchView.SetController(this); }
public BookController(IBookView view, IBookAddView addView, IBookService service, ISearchBook bookSearch, ISearchBookResults bookResults) { this.service = service; this.view = view; this.addView = addView; this.view.SetController(this); this.addView.SetController(this); this.bookSearch = bookSearch; this.bookSearch.SetController(this); this.bookResults = bookResults; this.bookResults.SetController(this); }
public BookViewPresenter(IBookView bookView) { _bookView = bookView; SetMode(EditMode.View); _booksService.PropertyChanged += (sender, e) => { if (e.PropertyName == "CurrentBook") { SetBook(_booksService.CurrentBook); } }; }
public BookViewModel(IBookView view) {
public BookController(IBookView view, IBookRepository bookRepository, IBindingRepository bindingRepository) { _view = view; _bookRepository = bookRepository; _bindingRepository = bindingRepository; }