private EventHandler Pay(Delivery delivery)
        {
            return(async(object sender, EventArgs e) =>
            {
                await Navigation.PopToRootAsync();

                MainTabbedPage.instance.HideShoppingCart();
                delivery.PaymentMethod = pickerMethod.SelectedIndex;
                await DeliveryHelperAzure.InsertDelivery(delivery);

                SharedData.actualDelivery = delivery;
                await alertDialogService.ShowDialogDelivering();

                Tools.Tools.PopToRootAsync(Navigation);
            });
        }