Exemplo n.º 1
0
        private void FutureCashFlowForm_Load(object sender, EventArgs e)
        {
            NextMonthPayments payments = new NextMonthPayments(DatabaseFactory.Default);
            nextPaymentsGrid.DataSource = payments.Summary;

            GridFormatter gridFormatter = new GridFormatter(nextPaymentsGrid);
            gridFormatter.DefaultFormat();

            totalGrid.DataSource = payments.SummaryTotal(nextPaymentsGrid.DataSource as DataTable);
            gridFormatter.TotalGridFormat(totalGrid);
        }
Exemplo n.º 2
0
        private void FutureCashFlowForm_Load(object sender, EventArgs e)
        {
            NextMonthPayments payments = new NextMonthPayments(DatabaseFactory.Default);

            nextPaymentsGrid.DataSource = payments.Summary;

            GridFormatter gridFormatter = new GridFormatter(nextPaymentsGrid);

            gridFormatter.DefaultFormat();

            totalGrid.DataSource = payments.SummaryTotal(nextPaymentsGrid.DataSource as DataTable);
            gridFormatter.TotalGridFormat(totalGrid);
        }