Esempio n. 1
0
        private void boton_clic2(object sender, EventArgs e)
        {
            botonSel4 = sender as Button;

            botonSel4.BackColor = Color.Cyan;
            pnlItemsSubcategoria.Controls.Clear();

            pnlItemsSubcategoria.Visible = true;
            items = new Clases.ClaseItems(botonSel4.Name, 4);
            crearBotonesItemsSubcategorias(items);
            pnlItemsCategorias.Controls.Add(pnlItemsSubcategoria);
        }
Esempio n. 2
0
        //FUNCION PARA CARGAR LOS ITEMS DE LAS CATEGORIAS
        private void boton_clic(object sender, EventArgs e)
        {
            botonSel = sender as Button;

            //botonSel.BackColor = Color.Blue;

            if (Convert.ToInt32(botonSel.Tag) == 0)
            {
                lblEtiquetaFamilia.Text = botonSel.Text;
                pnlItemsCategorias.Controls.Clear();
                items = new Clases.ClaseItems(botonSel.Name, 3);
                crearBotones(items);
            }
            else
            {
                pnlItemsCategorias.Controls.Clear();
                subcategoria = new Clases.ClaseSubcategoria(botonSel.AccessibleName);
                crearBotones2(subcategoria);
            }
        }