Ejemplo n.º 1
0
        //Shows all order income per day
        private void LoadDailyProfit()
        {
            List <Profit> FinanceListView = orderLogic.DailyProfit();

            ListView_Finances.Items.Clear();

            foreach (Profit day in FinanceListView)
            {
                ListViewItem li = new ListViewItem(day.date.ToString("dd/MM/yyyy"));
                li.SubItems.Add(string.Format("€{0:N2}", day.DayIncome));
                ListView_Finances.Items.Add(li);
            }
        }