Ejemplo n.º 1
0
        public void Checkout()
        {
            var isReady = Invoice.IsReadyForPayment();

            if (!isReady.Item1)
            {
                App.ShowAlert("Error", isReady.Item2);
                return;
            }
            PaymentViewController paymentVc = null;

            NavigationController.PushViewController(paymentVc = new PaymentViewController {
                Invoice = Invoice, InvoicePosted = () => {
                    Invoice.DeleteLocal();
                    Invoice = new Invoice();
                    paymentVc.Dispose();
                }
            }, true);
        }
Ejemplo n.º 2
0
		public void Checkout ()
		{
			var isReady = Invoice.IsReadyForPayment ();
			if (!isReady.Item1) {
				App.ShowAlert ("Error", isReady.Item2);
				return;
			}
			PaymentViewController paymentVc = null;
			NavigationController.PushViewController (paymentVc = new PaymentViewController {Invoice = Invoice, InvoicePosted = () => {
					Invoice.DeleteLocal ();
					Invoice = new Invoice ();
					paymentVc.Dispose ();
				}
			}, true);
		}