private void comboBox_ErrorCorrect_SelectedIndexChanged(object sender, EventArgs e) { QrCodeEncodingOptions qceo = (QrCodeEncodingOptions)qrCodeWriter.Options; qceo.ErrorCorrection = ErrorCorrectionLevel.forBits(comboBox_ErrorCorrect.SelectedIndex); refreshQrCode(); }
private void comboBox_ErrorCorrect_SelectedIndexChanged(object sender, EventArgs e) { QrCodeEncodingOptions qceo = (QrCodeEncodingOptions)qrCodeWriter.Options; qceo.ErrorCorrection = ErrorCorrectionLevel.forBits(comboBox_ErrorCorrect.SelectedIndex); qrCodeEncoder.QRCodeErrorCorrect = (ThoughtWorks.QRCode.Codec.QRCodeEncoder.ERROR_CORRECTION)qceo.ErrorCorrection.Bits; refreshQrCode(); }