public StatVariationNiveauParMatiereUI() { trimestres = new List <string>(); classes = new List <string>(); statistiqueBL = new GestionStatistiqueBL(); InitializeComponent(); periodes = new List <string>(); periodes.Add(SEQUENTIEL); periodes.Add(TRIMESTRIEL); sequences = new List <string>(); classes = new List <string>(); listeSource = new List <KeyValuePair <string, int> >(); classes = statistiqueBL.listerValeurColonneClasse("codeclasse"); cmbClasse.ItemsSource = classes; cmbClasse.SelectedIndex = 0; cmbClasse.Items.Refresh(); annee = statistiqueBL.anneeEnCours(); txtAnnee.Text = " / " + annee; txtAnneeScolaire.Text = (annee - 1).ToString(); sequences = statistiqueBL.listerValeurColonneSequence("codeseq"); trimestres = statistiqueBL.listerValeurColonneTrimestre("codetrimestre"); cmbExamen.ItemsSource = periodes; }
public StatComparatifResultatClasseUI() { List <string> tampon = new List <string>(); statistiqueBL = new GestionStatistiqueBL(); InitializeComponent(); examens = new List <string>(); sequences = new List <string>(); listeSource = new List <KeyValuePair <string, int> >(); annee = statistiqueBL.anneeEnCours(); txtAnnee.Text = " / " + annee; txtAnneeScolaire.Text = (annee - 1).ToString(); sequences = statistiqueBL.listerValeurColonneSequence("codeseq"); foreach (string seq in sequences) { examens.Add(seq); } tampon = statistiqueBL.listerValeurColonneTrimestre("codetrimestre"); foreach (string trim in tampon) { examens.Add(trim); } examens.Add(ANNUEL); cmbExamen.ItemsSource = examens; }