public QuoteStats() { InitializeComponent(); quoteController = new QuoteController(); statisticController = new StatisticController(); List <Quote> lst = quoteController.GetAll(); dgvQuotes.DataSource = lst; chQuotes.Series.Add(statisticController.GetStatisticalData(lst)); }
private void LoadStatisticalData() { chQuotesAndSales.Series.Add(statisticController.GetStatisticalData(quoteController.GetAll())); chQuotesAndSales.Series.Add(statisticController.GetStatisticalData(saleController.GetAll())); chNewCustomers.Series.Add(statisticController.GetStatisticalData(customerController.GetAll())); }