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 void RegisterInitModel(StudentInitModel model)
 {
     cbSex.DataSource    = model.ListSexOptions;
     cbSex.ValueMember   = "Value";
     cbSex.DisplayMember = "View";
 }