private void ColpazarProducto_Tick(object sender, EventArgs e) { if (EsColapzado) { PanelProd.Height += 10; if (PanelProd.Size == PanelProd.MaximumSize) { Form1_Load(sender, e); btnProductos.Iconimage_right = Resources.icons8_menor_que_50; PanelProd.Visible = true; ColapzarProducto.Stop(); EsColapzado = false; PanelProd.Visible = true; btnTortas.Location = new Point(5, 400); btnCliente.Location = new Point(5, 460); btnPedidos.Location = new Point(5, 520); btnVentas.Location = new Point(5, 580); } } else { btnProductos.Iconimage_right = Resources.icons8_más_de_50_2; PanelProd.Height -= 10; if (PanelProd.Size == PanelProd.MinimumSize) { //PanelCompras.Visible = true; ColapzarProducto.Stop(); Form1_Load(sender, e); EsColapzado = true; btnTortas.Location = new Point(5, 167); btnCliente.Location = new Point(5, 227); btnPedidos.Location = new Point(5, 287); btnVentas.Location = new Point(5, 347); } } }
private void btnProductos_Click(object sender, EventArgs e) { ColapzarProducto.Start(); }