main
 1using DataDynamics.ActiveReports;
 2using gorilla.commons.utility;
 3using MoMoney.Presentation.Model.reporting;
 4using MoMoney.Presentation.Views;
 5
 6namespace MoMoney.Presentation.Winforms.Views
 7{
 8    public partial class ReportViewer : ApplicationDockedWindow, IReportViewer
 9    {
10        public ReportViewer()
11        {
12            InitializeComponent();
13        }
14
15        public void display(IReport report)
16        {
17            var the_active_report = report.downcast_to<ActiveReport>();
18            the_active_report.Run();
19            ux_report_viewer.Document = the_active_report.Document;
20            titled(report.name);
21        }
22    }
23}