private void editUserBtn_Click(object sender, EventArgs e) { int id = int.Parse(dataGridView1.SelectedRows[0].Cells["IdUsuario"].FormattedValue.ToString()); UserEdit userEdit = new UserEdit(id); userEdit.Show(); }
private void button1_Click(object sender, EventArgs e) { UserEdit userEdit = new UserEdit(); userEdit.Show(); }