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 AuthorsList(ILibraryPresenter libraryPresenter) { InitializeComponent(); _librarypresenter = libraryPresenter; presenter = new AuthorListPresenter(libraryPresenter, this); }