private void btnNuevo_Click(object sender, EventArgs e) { // Instancia el formulario Views.New frmNew = new Views.New(); frmNew.ShowDialog(); // Refresca la tabla Refresh(); }
private void btnEdit_Click(object sender, EventArgs e) { int?productId = GetId(); if (productId != null) { Views.New frmNew = new Views.New(productId); frmNew.ShowDialog(); // Refresca la tabla Refresh(); } }