Exemplo n.º 1
0
        public SaleStats()
        {
            InitializeComponent();
            saleController      = new SaleController();
            statisticController = new StatisticController();
            List <Sale> lst = saleController.GetAll();

            dgvSales.DataSource = lst;
            chSales.Series.Add(statisticController.GetStatisticalData(lst));
        }
Exemplo n.º 2
0
        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()));
 }