Exemplo n.º 1
0
        public ExamsViewModel(
            IExamService examService,
            ICourseService courseService,
            IEnrolmentService enrolmentService,
            IStudentExamService studentExamService,
            ISemesterService semesterService,
            IExportService exportService,
            IDownloadFileService downloadFileService)
        {
            _examService         = examService;
            _courseService       = courseService;
            _enrolmentService    = enrolmentService;
            _studentExamService  = studentExamService;
            _semesterService     = semesterService;
            _exportService       = exportService;
            _downloadFileService = downloadFileService;

            _startExportCommand        = new DelegateCommand(OnStartExport, CanStartExport);
            _exportCommand             = new DelegateCommand(OnExport, CanExport);
            _addStudentsCommand        = new DelegateCommand(OnAddStudents, CanAddStudents);
            _addStudentsSaveCommand    = new DelegateCommand(OnAddStudentsSave, CanAddStudentsSave);
            _addStudentsDiscardCommand = new DelegateCommand(OnAddStudentsDiscard, CanAddStudentsDiscard);
            _studentsCommand           = new DelegateCommand(OnStudents, CanStudents);
            _saveEditStudentsCommand   = new DelegateCommand(OnSaveEditStudents, CanSaveEditStudents);
            _deleteStudentsCommand     = new DelegateCommand(OnDeleteStudents, CanDeleteStudents);
            _saveAllStudentsCommand    = new DelegateCommand(OnSaveAllStudents, CanSaveAllStudents);
        }
Exemplo n.º 2
0
 public FileController(IDownloadFileService downloadFileService, IAuthRepository authRepository,
                       IDataAccessService dataAccessService, IFileService fileService, IFileHandle fileHandle, ILoggerService loggerService)
 {
     _downloadFileService = downloadFileService;
     _authRepository      = authRepository;
     _dataAccessService   = dataAccessService;
     _fileService         = fileService;
     _fileHandle          = fileHandle;
     _loggerService       = loggerService;
 }
Exemplo n.º 3
0
        public Exams(
            IExamService examService,
            ICourseService courseService,
            IEnrolmentService enrolmentService,
            IStudentExamService studentExamService,
            ISemesterService semesterService,
            IExportService exportService,
            IDownloadFileService downloadFileService)
        {
            viewModel = new ExamsViewModel(examService, courseService, enrolmentService, studentExamService, semesterService, exportService, downloadFileService);

            InitializeComponent();

            this.Loaded += ExamsTable_Load;
        }
Exemplo n.º 4
0
        public MainWindow(
            ICourseService courseService,
            IStudentService studentService,
            ISemesterService semesterService,
            IStudentExamService studentExamService,
            IEnrolmentService enrolmentService,
            IExamService examService,
            IExportService exportService,
            IDownloadFileService downloadFileService)
        {
            _courseService      = courseService;
            _studentService     = studentService;
            _semesterService    = semesterService;
            _studentExamService = studentExamService;
            _enrolmentService   = enrolmentService;
            _examService        = examService;

            _exportService       = exportService;
            _downloadFileService = downloadFileService;


            InitializeComponent();
        }
Exemplo n.º 5
0
 public FileService(IDataAccessService service, IDownloadFileService downloadFileService)
 {
     _service             = service;
     _downloadFileService = downloadFileService;
 }