summaryrefslogtreecommitdiff
path: root/src/app/PlayingWithActiveReports.Win.UI/ResultsReportView.cs
blob: e7ad7d096983a70bee8fbc7673d25bb60988ddce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System.Windows.Forms;
using PlayingWithActiveReports.Core.View;
using PlayingWithActiveReports.Win.UI.Adapters;

namespace PlayingWithActiveReports.Win.UI {
	public partial class ResultsReportView : Form, IResultsReportView {
		public ResultsReportView( ) {
			InitializeComponent( );

			//ResultsReport report = new ResultsReport( );
			//report.subReport1.Report = new ResultsSection( );
			//report.Run( false );

			//this.viewer1.Document = report.Document;

			_presenter = new ResultsReportPresenter( this );
			_presenter.Initialize( );
		}

		public IReportViewer ReportViewer {
			get { return new ReportViewer( viewer1 ); }
		}

		private ResultsReportPresenter _presenter;
	}
}