//les Utilisateur : #region "les Utilisateur" private void button11_Click(object sender, EventArgs e) { A2_Form frm = new A2_Form(); frm.btnSave.Text = "Enregistrer"; frm.ShowDialog(); this.DG_Uti.DataSource = login.SearchUsers(""); }
private void button9_Click(object sender, EventArgs e) { A2_Form frm = new A2_Form(); frm.txtID.Text = DG_Uti.CurrentRow.Cells[0].Value.ToString(); frm.txtFullName.Text = DG_Uti.CurrentRow.Cells[1].Value.ToString(); frm.txtPWD.Text = DG_Uti.CurrentRow.Cells[2].Value.ToString(); frm.txtPWDConfirm.Text = DG_Uti.CurrentRow.Cells[2].Value.ToString(); frm.cmbType.Text = DG_Uti.CurrentRow.Cells[3].Value.ToString(); frm.btnSave.Text = "Modifier"; frm.ShowDialog(); this.DG_Uti.DataSource = login.SearchUsers(""); }