Ejemplo n.º 1
0
        public SelectFutureCoursesViewModel(ISqlData sqlData, IEventAggregator eventAggregator)
        {
            _sqlData          = sqlData;
            _eventAggregator  = eventAggregator;
            _yearOneCourses   = new BindableCollection <CourseModel>(_sqlData.GetCoursesByYear(1));
            _yearTwoCourses   = new BindableCollection <CourseModel>(_sqlData.GetCoursesByYear(2));
            _yearThreeCourses = new BindableCollection <CourseModel>(_sqlData.GetCoursesByYear(3));

            _completedCourses = new List <CompletedCourseModel>(_sqlData.GetAllCompletedCourses(UserName));

            Majors = new BindableCollection <MajorModel>(_sqlData.GetAllMajors());
        }