private void TypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         if (TypeComboBox.SelectedIndex != -1)
         {
             if (TypeComboBox.SelectedValue.ToString() == "1" /*etudiant*/)
             {
                 label3.Text = "N° d'inscription";
                 Filier.Show();
             }
             else
             if (TypeComboBox.SelectedValue.ToString() == "3" /*prof*/)
             {
                 label3.Text = "CIN";
                 Filier.Show();
             }
             else     /*Extern*/
             {
                 filier      = "";
                 label3.Text = "CIN";
                 Filier.Hide();
                 FilierComboBox.SelectedIndex = -1;
                 FilierComboBox.Text          = "";
                 filier = " and CodeFilier like '%%'";
             }
             type = "IdTypeEmp=" + TypeComboBox.SelectedValue.ToString();
         }
         filtrer();
     }
     catch (Exception ex) { MessageBox.Show(ex.Message); }
 }
 private void TypeComboBOX1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (TypeComboBOX1.SelectedValue.ToString() == "1" /*etudiant*/)
     {
         CIN.Show();
         label2.Text           = "N° d'inscription";
         Identifiantlabel.Text = "N° d'inscription";
         Filier.Show();
     }
     else
     if (TypeComboBOX1.SelectedValue.ToString() == "3" /*prof*/)
     {
         CIN.Hide();
         label2.Text           = "CIN";
         Identifiantlabel.Text = "CIN";
         Filier.Show();
     }
     else     /*Extern*/
     {
         CIN.Hide();
         label2.Text           = "CIN";
         Identifiantlabel.Text = "CIN";
         Filier.Hide();
     }
 }
 private void TypeComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     CinTXT.Text = "";
     if (TypeComboBox.SelectedValue.ToString() == "1" /*etudiant*/)
     {
         CIN.Show();
         Identifiant.Text = "N° d'inscription";
         Filier.Show();
     }
     else
     if (TypeComboBox.SelectedValue.ToString() == "3" /*prof*/)
     {
         CIN.Hide();
         Identifiant.Text = "CIN";
         Filier.Show();
     }
     else     /*Extern*/
     {
         FilierComboBox.SelectedValue = "NAN";
         CIN.Hide();
         Identifiant.Text = "CIN";
         Filier.Hide();
     }
 }