Esempio n. 1
0
        private void QRCodeScanner_ScanComplete(object sender, JeffWilcox.Controls.ScanCompleteEventArgs e)
        {
            code = "{ \"Token\": \"" + e.Result + "\", \"AccessToken\": \"" + Guid.NewGuid().ToString().Replace("-", "") + "\" }";

            var request = HttpWebRequest.Create("http://auth.ogzkyr.net/api/auth");

            request.Method      = "POST";
            request.ContentType = "application/json";
            request.BeginGetRequestStream(GetRequestStream, request);
        }
Esempio n. 2
0
        private void OnScanComplete(object sender, ScanCompleteEventArgs e)
        {
            var s = e.Result;
            _lastCode = s;

            if (s.LastIndexOf('/') < s.Length - 1 && s.Contains("/"))
            {
                var id = s.Substring(s.LastIndexOf('/') + 1);

                TryVenue(id);
            }
            else
            {
                CentralStatusManager.Instance.BeginShowTemporaryMessage("Not a foursquare QR code.");
            }
        }