Example #1
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            PresentacionObj presentacionInc = new PresentacionObj(ContadorP, this.panel3, this.PosY);

            PosY      += 54;
            ContadorP += 1;
            lstPresentaciones.Add(presentacionInc);
            mostrarCombobox();
            hacerSiesjerarquia();
        }
Example #2
0
 public void quitarPresentacion()
 {
     if (lstPresentaciones.Count - 1 > 0)
     {
         PresentacionObj ultimo = lstPresentaciones[lstPresentaciones.Count - 1];
         this.panel3.Controls.Remove(ultimo.cantidad);
         this.panel3.Controls.Remove(ultimo.cbx);
         this.panel3.Controls.Remove(ultimo.precio);
         this.panel3.Controls.Remove(ultimo.calendario);
         PosY      -= 54;
         ContadorP -= 1;
         lstPresentaciones.RemoveAt(lstPresentaciones.Count - 1);
     }
 }
Example #3
0
        public void Inicializador()
        {
            aniadirProducto         = new AddProduct();
            txtPrecedenciaM.Enabled = false;
            lstPresentaciones       = new List <PresentacionObj>();
            PresentacionObj presentacionS = new PresentacionObj(ContadorP, this.panel3, this.PosY);

            ContadorP += 1;
            PosY      += 54;
            lstPresentaciones.Add(presentacionS);
            label6.Visible          = false;
            dateTimePicker1.Visible = false;
            foreach (var pre in lstPresentaciones)
            {
                pre.calendario.Visible = true;
            }
            mostrarTabla();
            mostrarCombobox();
            mostrarCombobox2();
        }