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); }
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); }