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;
 }
示例#2
0
 public HandInFileSelectorViewModel(ILanguageService languageService, ISelectFilesService selectFilesService, IMessenger messenger, IHandInFileMetadataStorageService handInFileMetadataStorageService, IPathService pathService, IFileService fileService, IConfigurationService configurationService, ILoggerService loggerService)
 {
     this._languageService    = languageService;
     this._selectFilesService = selectFilesService;
     this._messenger          = messenger;
     this._handInFileMetadataStorageService = handInFileMetadataStorageService;
     this._pathService              = pathService;
     this._fileService              = fileService;
     this._loggerService            = loggerService;
     this.ChooseMainDocumentCommand = (ICommand) new RelayCommand((Action <object>)(c => this.ChooseMainDocumentClick()), (Predicate <object>)null);
     this.AddAttachmentCommand      = (ICommand) new RelayCommand((Action <object>)(c => this.AddAttachmentClick()), (Predicate <object>)null);
     this.RemoveMainDocumentCommand = (ICommand) new RelayCommand((Action <object>)(c => this.RemoveMainDocumentClick()), (Predicate <object>)null);
     this.RemoveAttachmentCommand   = (ICommand) new RelayCommand(new Action <object>(this.RemoveAttachmentClick), (Predicate <object>)null);
     this.MaxHandInFileSizeInBytes  = (long)configurationService.MaxHandInFileSizeInBytes;
     messenger.Register <OnWorkspacePathsSet>((object)this, new Action <OnWorkspacePathsSet>(this.OnWorkspacePathsSet));
     messenger.Register <OnAllowedFileExtensionsLoaded>((object)this, new Action <OnAllowedFileExtensionsLoaded>(this.OnAllowedFileExtensionsSet));
     messenger.Register <OnHandInFilesizeLimitLoaded>((object)this, new Action <OnHandInFilesizeLimitLoaded>(this.OnHandInFilesizeLimitLoaded));
 }