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(); }
public IPresenter GetStudentCreatePresenter(IViewContainer viewContainer, ICourseSelectView courseSelectView, IStudentView studentView) { return(new StudentCreatePresenter(viewContainer, courseSelectView, studentView)); }
public IPresenter GetStudentUpdatePresenter(IViewContainer viewContainer, ICourseSelectView courseSelectView, IStudentView studentView, Guid id) { return(new StudentUpdatePresenter(viewContainer, courseSelectView, studentView, id)); }