Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }