Ejemplo n.º 1
0
        public StudentSubmitViewModel(
            IStudentEndpoint studentEndpoint,
            ICourseEndpoint courseEndpoint)
        {
            this.studentEndpoint = studentEndpoint;
            this.courseEndpoint  = courseEndpoint;

            StudentCourseEnrollView = new StudentCourseEnrollViewModel(courseEndpoint);

            StudentPhoto = @"http://web.engr.oregonstate.edu/~johnstom/img/people/placeholder.png";
        }
Ejemplo n.º 2
0
        public CourseManagementViewModel(
            ICourseEndpoint courseEndpoint,
            ITeacherEndpoint teacherEndpoint,
            IStudentEndpoint studentEndpoint,
            IEventAggregator events)
        {
            this.courseEndpoint  = courseEndpoint;
            this.teacherEndpoint = teacherEndpoint;
            this.studentEndpoint = studentEndpoint;
            eventAggregator      = events;

            LoadCourses();
        }
Ejemplo n.º 3
0
        public StaffManagementViewModel(
            ITeacherEndpoint teacherEndpoint,
            ICourseEndpoint courseEndpoint,
            IEventAggregator eventAggregator
            )
        {
            this.teacherEndpoint = teacherEndpoint;
            this.courseEndpoint  = courseEndpoint;
            this.eventAggregator = eventAggregator;

            TeachersCoursesControlView   = new TeachersCoursesControlViewModel(courseEndpoint, eventAggregator);
            QualificationsAddControlView = new QualificationsAddControlViewModel(eventAggregator);

            SetUpNewStaffMode();

            LoadStaff();
        }
 public StudentCourseEnrollViewModel(ICourseEndpoint courseEndpoint)
 {
     this.courseEndpoint = courseEndpoint;
 }
 public TeachersCoursesControlViewModel(ICourseEndpoint courseEndpoint, IEventAggregator eventAggregator)
 {
     this.courseEndpoint  = courseEndpoint;
     this.eventAggregator = eventAggregator;
     eventAggregator.Subscribe(this);
 }