private void button3_Click(object sender, EventArgs e) { FRM_ADD_USER frm = new FRM_ADD_USER(); frm.txtId_Key.Text = dgv.CurrentRow.Cells[0].Value.ToString(); frm.txtID.Text = dgv.CurrentRow.Cells[1].Value.ToString(); frm.txtFullName.Text = dgv.CurrentRow.Cells[2].Value.ToString(); frm.txtPWD.Text = dgv.CurrentRow.Cells[3].Value.ToString(); frm.txtPWDConfirm.Text = dgv.CurrentRow.Cells[3].Value.ToString(); frm.cmbType.Text = dgv.CurrentRow.Cells[4].Value.ToString(); frm.btnSave.Text = "تعديل المستخدم"; frm.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { FRM_ADD_USER frm = new FRM_ADD_USER(); frm.ShowDialog(); }