Ejemplo n.º 1
0
 public MainServiceFacade(ISelectFilesService selectFilesService, ICreditService creditService,
                          IMessageBoxService messageBoxService, RenameServiceFacade renameServiceFacade)
 {
     SelectFilesService = selectFilesService;
     CreditService      = creditService;
     MessageBoxService  = messageBoxService;
     RenameServices     = renameServiceFacade;
 }
Ejemplo n.º 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));
 }