예제 #1
0
        private void btnModifier_Click(object sender, EventArgs e)
        {
            R_Ajouter_Enseignent frm = new R_Ajouter_Enseignent();

            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.txtTel.Text     = this.dataGridView1.CurrentRow.Cells[3].Value.ToString();
            frm.txtEmail.Text   = 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";
            frm.txtID.ReadOnly  = true;
            frm.txtNom.Focus();
            frm.ShowDialog();
        }
예제 #2
0
        private void btnAjouter_Click(object sender, EventArgs e)
        {
            Form frm = new R_Ajouter_Enseignent();

            frm.ShowDialog();
        }