private void simpleButton7_Click(object sender, EventArgs e)
 {
     try
     {
         RapportAffectation rpt = new RapportAffectation();
         rpt.DataSource = clreport.GetInstance().RapportTrie("liste_affectation", "Code_classe", "code_section", "codeop", "codeanne", txtcomboClasseBulletin.Text, txtComboSectionBulletin.Text, txtcomboOptionBulletin.Text, txtcomboAnneeBulletin.Text, "NomEns");
         using (ReportPrintTool printTool = new ReportPrintTool(rpt))
         {
             printTool.ShowPreviewDialog();
         }
     }
     catch (Exception ex)
     { MessageBox.Show(ex.Message); }
 }
 private void simpleButton11_Click(object sender, EventArgs e)
 {
     if (txtcomboAnneeAffect.Text == "" || txtcomboEnseignant.Text == "")
     {
         MessageBox.Show("Selectionnez l'Enseignant et l'année svp !!!");
     }
     else
     {
         try
         {
             RapportAffectation rpt = new RapportAffectation();
             rpt.DataSource = clreport.GetInstance().RapportTrie("liste_affectation", "codeens", "codeanne", txtcomboEnseignant.Text, txtcomboAnneeAffect.Text);
             using (ReportPrintTool printTool = new ReportPrintTool(rpt))
             {
                 printTool.ShowPreviewDialog();
             }
         }
         catch (Exception ex)
         { MessageBox.Show(ex.Message); }
     }
 }