Example #1
0
        void HandleScanResult(ZXing.Result result)
        {
            string msg = "";

            if (result != null && !string.IsNullOrEmpty(result.Text))
            {
                msg = "Found Barcode: " + result.Text;
            }
            else
            {
                msg = "Scanning Canceled!";
            }

            this.InvokeOnMainThread(() => {
                var av = new UIAlertView("Barcode Result", msg, null, "OK", null);
                av.Show();
                ImageViewController myTarget       = new ImageViewController();
                myTarget.usernameField             = new UITextField();
                myTarget.usernameField.Placeholder = "hello";
                this.NavigationController.PushViewController(myTarget, true);
            });
        }
		void HandleScanResult(ZXing.Result result)
		{
			string msg = "";

			if (result != null && !string.IsNullOrEmpty(result.Text))
				msg = "Found Barcode: " + result.Text;
			else
				msg = "Scanning Canceled!";

			this.InvokeOnMainThread(() => {
				var av = new UIAlertView("Barcode Result", msg, null, "OK", null);
				av.Show();
				ImageViewController myTarget = new ImageViewController ();
				myTarget.usernameField = new UITextField();
				myTarget.usernameField.Placeholder = "hello";
				this.NavigationController.PushViewController(myTarget, true);
			});
		}