public HexFileManagerViewModel(IHexFileManager hexFileManager, IEventAggregator eventAggregator, ILoggerFacade logger) { this.hexFileManager = hexFileManager; this.eventAggregator = eventAggregator; this.logger = logger; this.eventAggregator.GetEvent <SelectedSettingsEvent>().Subscribe(OnChangeSelectedSettings); closeAppCommand = new DelegateCommand(OnCloseApp); GlobalCommands.CloseAppCommand.RegisterCommand(closeAppCommand); _files.CollectionChanged += _files_CollectionChanged; }
public HexFileManagerViewModel(IHexFileManager hexFileManager, IEventAggregator eventAggregator, ILoggerFacade logger) { this.hexFileManager = hexFileManager; this.eventAggregator = eventAggregator; this.logger = logger; this.eventAggregator.GetEvent<SelectedSettingsEvent>().Subscribe(OnChangeSelectedSettings); closeAppCommand = new DelegateCommand(OnCloseApp); GlobalCommands.CloseAppCommand.RegisterCommand(closeAppCommand); _files.CollectionChanged += _files_CollectionChanged; }