Ejemplo n.º 1
0
 public WorkSpaceViewModel(IMessenger messenger, ISelectDirectoryService selectDirectoryService, IWorkspaceStorageService workspaceStorageService, IAssignmentFileService assignmentFileService, IDirectoryService directoryService, ILanguageService languageService, IPinCodeStorageService pinCodeStorageService, IBackupService backupService, ISafePathService safePathService, IPinCodeValidator pinCodeValidator, ITimerService examStartsTimer, IDirectoryAccessValidator directoryAccessValidator, ITimerService lockUiOnInvalidPinCodeTimerService, IBoardingPassStorageService boardingPassStorageService, ITimerService assignmentFilesRedownloadTimerService, ILoggerService loggerService)
 {
     this._messenger = messenger;
     this._selectDirectoryService                          = selectDirectoryService;
     this._workspaceStorageService                         = workspaceStorageService;
     this._assignmentFileService                           = assignmentFileService;
     this._directoryService                                = directoryService;
     this._languageService                                 = languageService;
     this._pinCodeStorageService                           = pinCodeStorageService;
     this._backupService                                   = backupService;
     this._safePathService                                 = safePathService;
     this._pinCodeValidator                                = pinCodeValidator;
     this._examStartsTimer                                 = examStartsTimer;
     this._directoryAccessValidator                        = directoryAccessValidator;
     this._lockUiOnInvalidPinCodeTimerService              = lockUiOnInvalidPinCodeTimerService;
     this._boardingPassStorageService                      = boardingPassStorageService;
     this._assignmentFilesRedownloadTimerService           = assignmentFilesRedownloadTimerService;
     this._loggerService                                   = loggerService;
     this._examStartsTimer.AutoReset                       = false;
     this._examStartsTimer.Elapsed                        += (ElapsedEventHandler)((sender, args) => this.ExamHasStarted());
     this._assignmentFilesRedownloadTimerService.AutoReset = false;
     this._assignmentFilesRedownloadTimerService.Elapsed  += new ElapsedEventHandler(this.AssignmentFilesRedownloadTimerService_Elapsed);
     this._assignmentFilesRedownloadTimerService.Interval  = 600000.0;
     this.SetWorkspacePathCommand                          = (ICommand) new RelayCommand((Action <object>)(c => this.SetWorkspaceClick()), (Predicate <object>)null);
     this.ShowUnlockAssignmentFilesCommand                 = (ICommand) new RelayCommand((Action <object>)(c => this.ShowUnlockAssignmentFilesClick()), (Predicate <object>)null);
     this.UpdateLanguage((OnLanguageChanged)null);
     messenger.Register <OnLanguageChanged>((object)this, new Action <OnLanguageChanged>(this.UpdateLanguage));
     messenger.Register <OnTimeLeftUntilExamStarts>((object)this, new Action <OnTimeLeftUntilExamStarts>(this.OnTimeLeftUntilExamStarts));
     messenger.Register <OnExaminationDataLoaded>((object)this, new Action <OnExaminationDataLoaded>(this.OnExaminationDataLoaded));
     messenger.Register <OnPinCodeLoginSuccessful>((object)this, new Action <OnPinCodeLoginSuccessful>(this.OnPinCodeLoginSuccessful));
     messenger.Register <OnPinCodeLoginForceContinue>((object)this, new Action <OnPinCodeLoginForceContinue>(this.OnPinCodeLoginForceContinue));
     messenger.Register <OnExaminationUrlLoaded>((object)this, new Action <OnExaminationUrlLoaded>(this.OnExaminationUrlLoaded));
 }
Ejemplo n.º 2
0
 public BoardingPassStorageService(IRegistryService registryService, IWorkspaceStorageService workspaceStorageService, IPinCodeStorageService pinCodeStorageService, IHandInFileMetadataStorageService handInFileMetadataStorageService, IHandInFieldIdStorageService handInFieldIdStorageService)
 {
     this._registryService                  = registryService;
     this._workspaceStorageService          = workspaceStorageService;
     this._pinCodeStorageService            = pinCodeStorageService;
     this._handInFileMetadataStorageService = handInFileMetadataStorageService;
     this._handInFieldIdStorageService      = handInFieldIdStorageService;
 }