private void tblUsuarios_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1) { int id = (int)tblUsuarios.Rows[e.RowIndex].Cells["UsuarioID"].Value; Form form = new FormUsuario(id); form.Show(); this.Close(); } }
private void btnCrear_Click(object sender, EventArgs e) { Form form = new FormUsuario(); form.Show(); this.Close(); }