22using System . Collections . Generic ;
33using System . ComponentModel ;
44using System . ComponentModel . Composition ;
5+ using System . Diagnostics ;
56using System . Globalization ;
67using System . IO ;
78using System . Linq ;
@@ -38,7 +39,7 @@ internal class ModuleController : IModuleController
3839
3940
4041 [ ImportingConstructor ]
41- public ModuleController ( IMessageService messageService , IFileDialogService fileDialogService , IEnvironmentService environmentService ,
42+ public ModuleController ( IMessageService messageService , IFileDialogService fileDialogService , ISettingsService settingsService , IEnvironmentService environmentService ,
4243 ExportFactory < Sha512HashController > sha512HashControllerFactory , ExportFactory < Sha256HashController > sha256HashControllerFactory ,
4344 ExportFactory < Sha1HashController > sha1HashControllerFactory , ExportFactory < MD5HashController > md5HashControllerFactory ,
4445 Lazy < ShellViewModel > shellViewModel , Lazy < FileHashListViewModel > fileHashListViewModel , ExportFactory < AboutViewModel > aboutViewModelFactory )
@@ -56,6 +57,7 @@ public ModuleController(IMessageService messageService, IFileDialogService fileD
5657 this . fileHashListViewModel = fileHashListViewModel ;
5758 this . aboutViewModelFactory = aboutViewModelFactory ;
5859
60+ settingsService . ErrorOccurred += ( sender , e ) => Trace . TraceError ( "Error in SettingsService: {0}" , e . Error ) ;
5961 openCommand = new DelegateCommand ( OpenFile ) ;
6062 closeCommand = new DelegateCommand ( CloseFile ) ;
6163 aboutCommand = new DelegateCommand ( ShowAboutView ) ;
0 commit comments