void Guardar() { try { string msg = ""; if (Validar()) { getInfo(); getparamingresa(); if (Bus.GuardarDB(ref _Info, ref msg)) { txtIdRubro.Text = _Info.IdRubro; MessageBox.Show(Resources.msgConfirmaGrabarOk, Resources.msgTituloGrabar, MessageBoxButtons.OK, MessageBoxIcon.Information); Limpiar(); } else { MessageBox.Show("Error: " + msg); } } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString()); } }