Exemplo n.º 1
0
        //Callback for QR Code Generation Button
        public void GenerateQRCode()
        {
            qrCode.GenerateQRCode();
            string code = qrCode.QRCodeID;

            input_qr_string.text = code;
            GetQRCodeForString(code);
        }
Exemplo n.º 2
0
        private void GenerateTicket(string vehicleNumber)
        {
            var ticketNumber     = parkingDatabaseFactory.GetUniqueCode();
            var validationNumber = parkingDatabaseFactory.GetUniqueCode();
            var entryTime        = DateTime.Now.ToString();
            var qrCode           = QRCode.GenerateQRCode(vehicleNumber, validationNumber, (int)_vehicleType, entryTime);
            var qrCodeImage      = QRCode.GetQRCodeImage(qrCode);
            var driverImage      = (Image)IPCamera.GetDriverImage();
            var vehicleImage     = (Image)IPCamera.GetVehicleImage();

            ticket = new Ticket()
            {
                TicketNumber     = ticketNumber,
                ValidationNumber = validationNumber,
                VehicleNumber    = vehicleNumber,
                VehicleType      = _vehicleType,
                QRCodeImage      = qrCodeImage,
                QRCode           = qrCode,
                EntryTime        = entryTime,
                DriverImage      = (Bitmap)driverImage,
                VehicleImage     = (Bitmap)vehicleImage
            };
        }