예제 #1
0
 public CSRate(Employee emp)
 {
     this.csq      = CSQueue.getInstance();
     this.connect  = ConnectDatabase.getInstance();
     this.employee = emp;
     InitializeComponent();
     employeename.Content = emp.name;
 }
예제 #2
0
 public QMShowQueue()
 {
     tq           = TellerQueue.getInstance();
     csq          = CSQueue.getInstance();
     this.connect = ConnectDatabase.getInstance();
     InitializeComponent();
     tellerqueue.Content = "";
     csqueue.Content     = "";
     init();
 }
예제 #3
0
        public CSQRCode(Employee emp, Customer cust)
        {
            this.csq      = CSQueue.getInstance();
            this.employee = emp;
            this.customer = cust;
            InitializeComponent();
            QRCodeGenerator qrGenerator  = new QRCodeGenerator();
            QRCodeData      qrCodeData   = qrGenerator.CreateQrCode(csq.uniquequeue, QRCodeGenerator.ECCLevel.H);
            XamlQRCode      qrCode       = new XamlQRCode(qrCodeData);
            DrawingImage    qrCodeAsXaml = qrCode.GetGraphic(20);

            qrcode.Source = qrCodeAsXaml;
        }