Пример #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(IContainerExtension container)
 {
     _eventAggregator = container.Resolve <IEventAggregator>();
     _logger          = container.Resolve <ILoggerService>();
     _workspace       = container.Resolve <IWorkspace>();
     _handler         = container.Resolve <IContentHandlerRegistry>() as ContentHandlerRegistry;
     _recentSettings  = container.Resolve <IRecentViewSettings>() as RecentViewSettings;
     _dialog          = new OpenFileDialog();
 }
Пример #2
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(ILoggerService logger,
                            AbstractWorkspace workspace, IContentHandlerRegistry handler,
                            IRecentViewSettings recentSettings)
 {
     _logger         = logger;
     _dialog         = new OpenFileDialog();
     _workspace      = workspace;
     _handler        = handler as ContentHandlerRegistry;
     _recentSettings = recentSettings as RecentViewSettings;
 }
Пример #3
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;
 }
Пример #4
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="output">The injected logger</param>
 public OpenDocumentService(IUnityContainer container, IEventAggregator eventAggregator, IOutputService output,
                            DefaultWorkspace workspace, IContentHandlerRegistry handler,
                            IRecentViewSettings recentSettings)
 {
     _container       = container;
     _eventAggregator = eventAggregator;
     _output          = output;
     _dialog          = new OpenFileDialog();
     _workspace       = workspace;
     _handler         = handler as ContentHandlerRegistry;
     _recentSettings  = recentSettings as RecentViewSettings;
 }