Ejemplo n.º 1
0
        public void OnClickScan(object sender, EventArgs e)
        {
            // ScanAsync();
            //Bypass scan for testing purpose
            QRCodeData qrdata = new QRCodeData();

            qrdata.Inscompany = "Unitedinsc";
            qrdata.Policyno   = "POL893122";
            qrdata.Vehicleno  = "MH09A6677";
            qrdata.Firstname  = "Paul";
            qrdata.Lastname   = "Laker";
            qrdata.Startdate  = "2017-11-20T14:33:05";
            qrdata.Enddate    = "2018-11-20T01:41:15";
            qrdata.Id         = "f87ddd46-3168-4c9f-809c-eb6261e054f6";

            var qrresultjson = JsonConvert.SerializeObject(qrdata);
            var qrresult     = new QRResult
            {
                qrcode = qrresultjson
            };

            Navigation.PushAsync(new QRResultPage(qrresult));
        }