public static FrmCompletedToMesPrint GetSingleton(string tag, Bitmap QRcode)
 {
     tagInvoice = tag;
     byteImage  = QRcode;
     if (frm == null || frm.IsDisposed)
     {
         frm = new FrmCompletedToMesPrint();
     }
     return(frm);
 }
Esempio n. 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();
        }