private void btnNuevo_Click(object sender, EventArgs e) { frmEdicionParametro ofrmEdicion = new frmEdicionParametro(); ofrmEdicion.ShowDialog(); if (ofrmEdicion.Aceptar) { ParametroD oParametroD = new ParametroD(this.cnx); oParametroD.agregarParametro(ofrmEdicion.OParametroL); if (oParametroD.Error) { MessageBox.Show("Error agregando los datos:" + oParametroD.ErrorDescription); } else { MessageBox.Show("Parametro agregado!!!"); this.cargarGrid(); } } }