예제 #1
0
        //Clipboard

        private void QRButton_Click(object sender, EventArgs e)
        {
            if (Clipboard.ContainsImage())
            {
                displayQR.Image = Clipboard.GetImage();
                rentalTeam      = qr.decryptQRCode(displayQR.Image);
            }

            updateForm();
        }
예제 #2
0
        //Handle QR inputs.

        //HTTP Request.

        private void button1_Click(object sender, EventArgs e)
        {
            //First, get and display the QR code
            displayQR.Image = qr.getQRData();

            if (displayQR.Image != null)
            {
                rentalTeam = qr.decryptQRCode(displayQR.Image);
            }
            updateForm();
        }
예제 #3
0
        //Handle QR inputs.

        //Clipboard

        private void QRButton_Click(object sender, EventArgs e)
        {
            if (Clipboard.ContainsImage())
            {
                displayQR.Image = Clipboard.GetImage();
                rentalTeam      = QRParser.decryptQRCode(displayQR.Image);
            }
            else
            {
                MessageBox.Show("Please make sure you have a QR code copied.", "Invalid QR Code", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            updateForm();
        }