public StudentCreatePresenter(IViewContainer viewContainer, ICourseSelectView coursesView, IStudentView studentView) : base(viewContainer)
        {
            _coursesSelectView = coursesView;
            _studentView       = studentView;

            _listCourses      = new BindingList <CourseSelectViewModel>();
            _studentViewModel = new StudentViewModel();
            _studentInitModel = new StudentInitModel();

            _courseRepository  = RepositoryFactory.Scope.Instance.GetCourseRepository();
            _studentRepository = RepositoryFactory.Scope.Instance.GetStudentRepository();
        }
Esempio n. 2
0
 public IPresenter GetStudentCreatePresenter(IViewContainer viewContainer, ICourseSelectView courseSelectView, IStudentView studentView)
 {
     return(new StudentCreatePresenter(viewContainer, courseSelectView, studentView));
 }
Esempio n. 3
0
 public IPresenter GetStudentUpdatePresenter(IViewContainer viewContainer, ICourseSelectView courseSelectView, IStudentView studentView, Guid id)
 {
     return(new StudentUpdatePresenter(viewContainer, courseSelectView, studentView, id));
 }