Пример #1
0
        private void dtpDateIni_ValueChanged(object sender, EventArgs e)
        {
            if (editDate)
            {
                lbCaptionRevenue.Text = "Receita";

                report = ctrReport.GenerateByPeriod(dtpDateIni.Value, dtpDateEnd.Value);
                HabilitDataGridView(DtvTypes.Entries);
                dtvEntries.DataSource = new BindingList <EntryExpenses>(report.EntryExpenses);
                ctrDash.CategorieChartForReport(ctCategories, report, EntryType.Expense);

                lbDate.Text         = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(dtpDateIni.Value.ToString("MMM yyyy")) + " à " + CultureInfo.CurrentCulture.TextInfo.ToTitleCase(dtpDateEnd.Value.ToString("MMM yyyy"));
                lbTotalIncome.Text  = report.TotalIncome.ToString("C");
                lbTotalRevenue.Text = report.TotalRevenue.ToString("C");
                LbTotalExpense.Text = report.TotalExpenses.ToString("C");
            }
        }