//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(); }
//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(); }