private void SedQuestion_Load(object sender, EventArgs e) { //MessageBox.Show(SedQuestion.id.ToString()); string id = RSACSR.Encryption(SedQuestion.id.ToString()); label3.Text = sendQ.SedQuestion.str; this.barCodeView1.Value = id; }
private void barcodeScanner1_BarcodeScanned(object sender, BarcodeResultArgs e) { try { if (string.IsNullOrEmpty(e.error)) { Show(new QuestionnaireList(Convert.ToInt32(RSACSR.Decrypt(e.Value))), true); } } catch (Exception) { MessageBox.Show("非有效二维码"); } }