Пример #1
0
 /// <summary>
 /// Constructor for Open file service
 /// </summary>
 /// <param name="container">The injected container</param>
 /// <param name="eventAggregator">The injected event aggregator</param>
 /// <param name="logger">The injected logger</param>
 public OpenDocumentService(IUnityContainer container, IEventAggregator eventAggregator, ILoggerService logger,
                            AbstractWorkspace workspace, IContentHandlerRegistry handler,
                            IRecentViewSettings recentSettings)
 {
     _container       = container;
     _eventAggregator = eventAggregator;
     _logger          = logger;
     _dialog          = new OpenFileDialog();
     _workspace       = workspace;
     _handler         = handler as ContentHandlerRegistry;
     _recentSettings  = recentSettings as RecentViewSettings;
 }
 /// <summary>
 /// Constructor for Open file service
 /// </summary>
 /// <param name="container">The injected container</param>
 /// <param name="eventAggregator">The injected event aggregator</param>
 /// <param name="logger">The injected logger</param>
 public OpenDocumentService(IUnityContainer container, IEventAggregator eventAggregator, ILoggerService logger,
                            AbstractWorkspace workspace, IContentHandlerRegistry handler,
                            IRecentViewSettings recentSettings)
 {
     _container = container;
     _eventAggregator = eventAggregator;
     _logger = logger;
     _dialog = new OpenFileDialog();
     _workspace = workspace;
     _handler = handler as ContentHandlerRegistry;
     _recentSettings = recentSettings as RecentViewSettings;
 }