public void ShowAddBookView() { var view = new AddBook(this); var presenter = new AddBookPresenter(model, view); showView(view); centerActualView(); }
private void Initialize() { addBookPresenter = new AddBookPresenter(libraryPresenter); addBookPresenter.CompleteAuthorList(comboBoxAuthors); addBookPresenter.CompleteCategoriesList(comboBoxCategiries); authorList = new AuthorsList(libraryPresenter); categoriesListControler = new CategoriesList(libraryPresenter); AuthorListPresenter AuthorPresenter = new AuthorListPresenter(libraryPresenter, authorList); panelAuthorControl.Controls.Add(authorList); panelCategoryControler.Controls.Add(categoriesListControler); textBoxSelectedAuthors.AutoSize = true; }
public AddBookFrm() { InitializeComponent(); _addBookFrmPresenter = new AddBookPresenter(this); _addBookValidator = new AddBookValidator(this); }