예제 #1
0
        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;
        }
예제 #2
0
 public AuthorsList(ILibraryPresenter libraryPresenter)
 {
     InitializeComponent();
     _librarypresenter = libraryPresenter;
     presenter         = new AuthorListPresenter(libraryPresenter, this);
 }