Ejemplo n.º 1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            BarcodeReader Reader = new BarcodeReader();
            Result        result = Reader.Decode((Bitmap)pictureBox1.Image);

            try
            {
                string decoded = result.ToString().Trim();
                if (decoded != "" && decoded == Properties.Settings.Default.PasswordQR)
                {
                    timer1.Enabled = false;
                    timer1.Stop();
                    MessageBox.Show("Success");
                    FinalFrame.Stop();
                    password form = new password();
                    form.Show();
                    this.Hide();
                }
                else
                {
                    timer1.Enabled = false;
                    timer1.Stop();
                    MessageBox.Show("your password is not correct");
                }
            }
            catch (Exception ex)
            {
                //  MessageBox.Show(ex.Message);
            }
        }
Ejemplo n.º 2
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            password changepass = new password();

            changepass.Show();
        }