Exemple #1
0
 public MainWindow()
 {
     InitializeComponent();
     _logger              = new DebugLogger();
     _exportMapService    = new ExportMapService(_logger);
     _createReportCommand = new CreateSampleReportCommand(_logger, _exportMapService);
     _createExportMetadataBasedReportCommand = new CreateExportMetadataBasedReportCommand(_logger, _exportMapService);
 }
        /// <summary>
        /// Initialises a new instance of the <see cref="CreateSampleReportCommand"/> class.
        /// </summary>
        /// <param name="logger">The logger.</param>
        /// <param name="exportMapService">The export map service.</param>
        public CreateExportMetadataBasedReportCommand(
            ILogger logger,
            IExportMapService exportMapService)
        {
            Guard.IsNotNull(logger, "logger");
            Guard.IsNotNull(exportMapService, "exportMapService");

            _logger             = logger;
            _exportMapService   = exportMapService;
            _debuggerIsAttached = Debugger.IsAttached;
        }