Exemplo n.º 1
0
 private void AbrirVenda_Tick(object sender, EventArgs e)
 {
     gpbVenda.Height += 15;
     if (gpbVenda.Height >= 158)
     {
         gpbVenda.Height = 157;
         AbrirVenda.Stop();
     }
 }
Exemplo n.º 2
0
 private void FecharVenda_Tick(object sender, EventArgs e)
 {
     gpbVenda.Height -= 15;
     if (gpbVenda.Height <= 0)
     {
         gpbVenda.Height = 0;
         AbrirVenda.Stop();
     }
 }
Exemplo n.º 3
0
        private void pcbVendas_Click(object sender, EventArgs e)
        {
            Image img = pcbVendas.Image;

            img.RotateFlip(RotateFlipType.Rotate180FlipNone);
            pcbVendas.Image = img;



            if (gpbVenda.Height == 0)
            {
                FecharVenda.Stop();
                AbrirVenda.Start();
            }



            if (gpbVenda.Height == 157)
            {
                AbrirVenda.Stop();
                FecharVenda.Start();
            }
        }