public static TellerQueue getInstance() { if (Instance == null) { Instance = new TellerQueue(); } return(Instance); }
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; }