Exemple #1
0
            private async void ProcessResult(string text)
            {
                string data = await QrVerification.QrCheck(text);

                if (data == null)
                {
                    scanActivity.OnToastCreate("QR or UserID is invalid", false);
                }
                else
                {
                    GetName.FullName = data;
                    GetName.UserID   = text;
                    scanActivity.gotoDonationEditActivity();
                }
            }
        private async void sendData(object sender, EventArgs e)
        {
            string data = await QrVerification.InfoEdit(GetName.UserID, itemValue);

            if (data == "404")
            {
                Finish();
                StartActivity(typeof(ScanActivity));
                Toast.MakeText(this, "An Error Occured", ToastLength.Long).Show();
            }
            else
            {
                Finish();
                StartActivity(typeof(ScanActivity));
                Toast.MakeText(this, "Transaction Successful", ToastLength.Long).Show();
            }
        }