示例#1
0
        private void comboBox_ErrorCorrect_SelectedIndexChanged(object sender, EventArgs e)
        {
            QrCodeEncodingOptions qceo = (QrCodeEncodingOptions)qrCodeWriter.Options;

            qceo.ErrorCorrection = ErrorCorrectionLevel.forBits(comboBox_ErrorCorrect.SelectedIndex);
            refreshQrCode();
        }
示例#2
0
        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();
        }