private void modificarButton_Click(object sender, EventArgs e) { Articulo modificar; modificar = (Articulo)dgvEliminar.CurrentRow.DataBoundItem; frmAgregar frmAgregar = new frmAgregar(modificar); frmAgregar.Text = "Modificar"; frmAgregar.ShowDialog(); RefreshDatos(dgvEliminar); }
private void btnAgregar_Click(object sender, EventArgs e) { try { frmAgregar alta = new frmAgregar(); alta.ShowDialog(); } catch (Exception ex) { throw ex; } }