Exemple #1
0
        private void LoadBarChartData()
        {
            List <PersonelStat> v  = new List <PersonelStat>();
            List <Personel>     ls = Requettes.getAllPersonels();

            for (int i = 0; i < ls.Count; i++)
            {
                v.Add(new PersonelStat(ls.ElementAt(i).nom, Requettes.nbApparenceJournal(ls.ElementAt(i).id)));
            }

            ((BarSeries)mcChart.Series[0]).ItemsSource = v;
        }