add btc to data


SUBMITTED BY: Guest

DATE: Nov. 18, 2013, 10:07 p.m.

FORMAT: Text only

SIZE: 703 Bytes

HITS: 690

  1. private void btnAjou_Click(object sender, EventArgs e)
  2. {
  3. DataRow drw;
  4. Boolean b = Rechercher(int.Parse(this.txtCode.Text));
  5. if (b == false )
  6. {
  7. drw = ds.Tables["Stagiaire"].NewRow();
  8. drw[0] = int.Parse(txtCode.Text);
  9. drw[1] = this.txtNom.Text;
  10. drw[2] = this.txtPrenom.Text;
  11. drw[3] = this.txtcode_sp.Text;
  12. ds.Tables["Stagiaire"].Rows.Add(drw);
  13. MessageBox.Show("Ajoute(e) avec Success");
  14. }
  15. else
  16. MessageBox.Show("exist");
  17. }

comments powered by Disqus