public MainPresenter(IViewContainer viewContainer, IMainView mainView, IStudentsView studentsView, ICoursesView coursesView) : base(viewContainer) { //views _mainView = mainView; _studentsView = studentsView; _coursesView = coursesView; //views models _listStudents = new BindingList <StudentViewModel>(); _listCourses = new BindingList <CourseViewModel>(); //repository _studentRepository = RepositoryFactory.Scope.Instance.GetStudentRepository(); _courseRepository = RepositoryFactory.Scope.Instance.GetCourseRepository(); }
public IPresenter GetMainPresenter(IViewContainer viewContainer, IMainView mainView, IStudentsView studentsView, ICoursesView coursesView) { return(new MainPresenter(viewContainer, mainView, studentsView, coursesView)); }
public StudentsController(IStudentsView view) { _view = view; }