Add Trainer


SUBMITTED BY: Guest

DATE: Nov. 21, 2013, 12:20 a.m.

FORMAT: Text only

SIZE: 865 Bytes

HITS: 892

  1. DataRow dtrw_ajouter;
  2. Boolean b = Rechercher_bol(int.Parse(txtID.Text));
  3. if (b == false)
  4. {
  5. dtrw_ajouter = DS.Tables["Stagiaire"].NewRow();
  6. dtrw_ajouter[0] = int.Parse(this.txtID.Text);
  7. dtrw_ajouter[1] = this.txtNom.Text;
  8. dtrw_ajouter[2] = this.txtPrenom.Text;
  9. dtrw_ajouter[3] = this.CmbSp.Text;
  10. if (oppMale.Checked == true)
  11. dtrw_ajouter[4] = "Masculine";
  12. else
  13. dtrw_ajouter[4] = "Feminin";
  14. dtrw_ajouter[5] = txtAdrs.Text;
  15. dtrw_ajouter[6] = dateTimePicker1.Value.Date;
  16. DS.Tables["Stagiaire"].Rows.Add(dtrw_ajouter);
  17. MessageBox.Show("Ajouter Avec Success");

comments powered by Disqus