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

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

                negocio.EliminarCategoria(catLocal);
                cargarGrilla();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }