Beispiel #1
0
 public static TellerQueue getInstance()
 {
     if (Instance == null)
     {
         Instance = new TellerQueue();
     }
     return(Instance);
 }
Beispiel #2
0
        public QRCode(Employee emp)
        {
            this.tq       = TellerQueue.getInstance();
            this.employee = emp;
            InitializeComponent();
            QRCodeGenerator qrGenerator  = new QRCodeGenerator();
            QRCodeData      qrCodeData   = qrGenerator.CreateQrCode(tq.uniquequeue, QRCodeGenerator.ECCLevel.H);
            XamlQRCode      qrCode       = new XamlQRCode(qrCodeData);
            DrawingImage    qrCodeAsXaml = qrCode.GetGraphic(20);

            qrcode.Source = qrCodeAsXaml;
        }