main
 1using System.Collections.Generic;
 2using DataDynamics.ActiveReports;
 3using gorilla.commons.utility;
 4using MoMoney.DTO;
 5using MoMoney.Presentation.Model.reporting;
 6using MoMoney.Presentation.Views;
 7
 8namespace MoMoney.Presentation.Winforms.Views
 9{
10    public partial class ViewAllIncomeReport : ActiveReport, IViewAllIncomeReport
11    {
12        public ViewAllIncomeReport()
13        {
14            InitializeComponent();
15            name = "View All Income - Report";
16        }
17
18        public string name { get; private set; }
19
20        public void run(IEnumerable<IncomeInformationDTO> income)
21        {
22            ux_company_name.bind_to<IncomeInformationDTO, string>(x => x.company);
23            ux_amount.bind_to<IncomeInformationDTO, string>(x => x.amount);
24            ux_received_date.bind_to<IncomeInformationDTO, string>(x => x.recieved_date);
25            DataSource = income.databind();
26        }
27    }
28}