private void btnModifier_Click(object sender, EventArgs e) { R_Ajouter_Examen frm = new R_Ajouter_Examen(); frm.txtID.Text = this.dataGridView1.CurrentRow.Cells[0].Value.ToString(); frm.cbType.Text = this.dataGridView1.CurrentRow.Cells[1].Value.ToString(); frm.dateExamen.Text = this.dataGridView1.CurrentRow.Cells[2].Value.ToString(); frm.txtHeurD.Text = this.dataGridView1.CurrentRow.Cells[3].Value.ToString(); frm.txtHeurF.Text = this.dataGridView1.CurrentRow.Cells[4].Value.ToString(); frm.lTitre.Text = "Modifier Examen"; frm.btnAjouter.Text = "Modifier"; frm.cas = "Modifier"; frm.ShowDialog(); }
private void btnAjouter_Click(object sender, EventArgs e) { R_Ajouter_Examen frm = new R_Ajouter_Examen(); frm.ShowDialog(); }