private void simpleButton10_Click(object sender, EventArgs e)
 {
     try
     {
         RapportInscription rpt = new RapportInscription();
         rpt.DataSource = clreport.GetInstance().RapportTrie("liste_inscription", "Classe", "codesection", "codeoption", "annee", txtcomboClasseBulletin.Text, txtComboSectionBulletin.Text, txtcomboOptionBulletin.Text, txtcomboAnneeBulletin.Text, "nom");
         using (ReportPrintTool printTool = new ReportPrintTool(rpt))
         {
             printTool.ShowPreviewDialog();
         }
     }
     catch (Exception ex)
     { MessageBox.Show(ex.Message); }
 }
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     if (txtdate1.Text == "" || txtdate2.Text == "")
     {
         MessageBox.Show("Entrez les date svp !!!");
     }
     else
     {
         try
         {
             RapportInscription be = new RapportInscription();
             be.DataSource = clreport.GetInstance().get_Report_Trier("liste_inscription", "DateInscription", DateTime.Parse(txtdate1.Text.Trim()), DateTime.Parse(txtdate2.Text.Trim()));
             using (ReportPrintTool printTool = new ReportPrintTool(be))
             {
                 printTool.ShowPreviewDialog();
             }
         }
         catch (Exception ex)
         { MessageBox.Show(ex.Message); }
     }
 }