コード例 #1
0
 public static FrmCompletedToMesPrint GetSingleton(string tag, Bitmap QRcode)
 {
     tagInvoice = tag;
     byteImage  = QRcode;
     if (frm == null || frm.IsDisposed)
     {
         frm = new FrmCompletedToMesPrint();
     }
     return(frm);
 }
コード例 #2
0
        private void butPrint_Click(object sender, EventArgs e)
        {
            if (this.ScanDataDataSource.Rows.Count <= 0)
            {
                return;
            }
            string invoice             = this.ScanDataDataSource.Rows[0]["tagInvoice"].ToString().Trim().ToUpper();
            Bitmap QRCode              = QRCodeHelper.GenQRCode(invoice, 120, 120);
            FrmCompletedToMesPrint frm = FrmCompletedToMesPrint.GetSingleton(invoice, QRCode);

            frm.Show();
            frm.Activate();
        }