private void btnProximaPg_Click(object sender, EventArgs e) { if (ImgAdd == true) { if (txtID.Text != "") { if (txtNome.Text != "") { if (txtStatus.Text != "") { try { if (fvdProgress.Value == 64) { GeradorCode.QRCode code = new GeradorCode.QRCode(); ptbCodeID.Image = code.GerarQRCode(txtID.Text, CorCode); fvdProgress.Value += 6; lblStatusProgress.Text = fvdProgress.Value.ToString() + "%"; AnimaPg.Start(); } else { GeradorCode.QRCode code = new GeradorCode.QRCode(); ptbCodeID.Image = code.GerarQRCode(txtID.Text, CorCode); /// lblStatusProgress.Text = fvdProgress.Value.ToString() + "%"; /// AnimaPg.Start(); } } catch (Exception ex) { } } else { MessageBox.Show("vc precisa preencher os campo txtID"); } } else { MessageBox.Show("vc precisa preencher os campo txtID"); } } else { MessageBox.Show("vc precisa preencher os campo txtID"); } } else { MessageBox.Show("coloca a imagem do produto"); } }
private void AnimaPg_Tick(object sender, EventArgs e) { pnlPg1.Left -= 10; pnlpg2.Left -= 10; if (pnlPg1.Left <= -450) { AnimaPg.Stop(); } }