Beispiel #1
0
        private void btnModificar_Click(object sender, EventArgs e)
        {
            Categorias        local;
            CategoriasNegocio negocio = new CategoriasNegocio();

            try
            {
                local        = new Categorias();
                local.Id     = Convert.ToInt32(txtId.Text);
                local.Nombre = txtNombre.Text;

                negocio.ModificarCategoria(local);
                cargarGrilla();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }