private void timer5_Tick_1(object sender, EventArgs e) { gpbCliente.Height += 15; if (gpbCliente.Height >= 158) { gpbCliente.Height = 157; AbrirCliente.Stop(); } }
private void FecharCliente_Tick(object sender, EventArgs e) { gpbCliente.Height -= 15; if (gpbCliente.Height <= 0) { gpbCliente.Height = 0; AbrirCliente.Stop(); } }
private void pcbcliente_Click(object sender, EventArgs e) { Image img = pcbcliente.Image; img.RotateFlip(RotateFlipType.Rotate180FlipNone); pcbcliente.Image = img; if (gpbCliente.Height == 0) { FecharCliente.Stop(); AbrirCliente.Start(); } if (gpbCliente.Height == 157) { AbrirCliente.Stop(); FecharCliente.Start(); } }