Ejemplo n.º 1
0
        void Actualizar()
        {
            try
            {
                string msg = "";

                if (Validar())
                {
                    Get();

                    if (Bus.ModificarDB(Info, ref msg))
                    {
                        txtId.Text = Info.IdCatalogo.ToString();
                        MessageBox.Show(Resources.msgConfirmaGrabarOk, Resources.msgTituloGrabar, MessageBoxButtons.OK, MessageBoxIcon.Information);
                        Limpiar();
                        lblEstado.Visible = false;
                        Accion            = Cl_Enumeradores.eTipo_action.grabar;
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                Log_Error_bus.Log_Error(ex.ToString());
            }
        }