示例#1
0
 private void Button1_Click(object sender, EventArgs e)
 {
     try
     {
         AccesPoste accesPoste = new AccesPoste();
         accesPoste.ajoutPoste(comboBoxPoste.Text);
         AfficheCombo();
     }
     catch (SqlException)
     {
         MessageBox.Show("Problème de connection essayez plus tard");
     }
 }