Esempio n. 1
0
        private void btnModifier_Click(object sender, EventArgs e)
        {
            R_Ajouter_Stagiaire frm = new R_Ajouter_Stagiaire();

            frm.txtID.Text     = this.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            frm.txtNom.Text    = this.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            frm.txtPrenom.Text = this.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            frm.txtEmail.Text  = this.dataGridView1.CurrentRow.Cells[3].Value.ToString();
            //frm. = this.dataGridView1.CurrentRow.Cells[4].Value.ToString();
            frm.lTitre.Text     = "Modifier: " + this.dataGridView1.CurrentRow.Cells[1].Value.ToString() + " " + this.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            frm.btnAjouter.Text = "Modifier";
            frm.cas             = "Modifier";
            lTitre.Location     = new Point(61, 43);
            frm.txtID.ReadOnly  = true;
            frm.txtNom.Focus();
            frm.ShowDialog();
        }
Esempio n. 2
0
        private void btnAjouter_Click(object sender, EventArgs e)
        {
            Form frm = new R_Ajouter_Stagiaire();

            frm.ShowDialog();
        }