private void btnUpdate_Click(object sender, EventArgs e) { int id = int.Parse(dgvModelo.Rows[dgvModelo.CurrentRow.Index].Cells[0].Value.ToString()); createForm = new ModelsForm(id); createForm.ShowDialog(); }
private void btnAdd_Click(object sender, EventArgs e) { createForm = new ModelsForm(); createForm.ShowDialog(); }