private void btnAceptar_Click(object sender, EventArgs e) { try { Validar.FormularioRubro(tboxCodigoRubro, tboxNombre, "Agregar"); unRubroNegocio.AgregarRubro(unRubroNegocio.CargarRubro(tboxCodigoRubro, tboxNombre)); this.Dispose(); } catch (Exception Excepcion) { MessageBox.Show(Excepcion.Message); } }