async void Handle_Clicked(object sender, System.EventArgs e) { if (mealOrdersCount == 0) { await DisplayAlert("Order Error", "Please make an order to continue", "Continue"); } else { foodbankID = foodbankID.Substring(0, foodbankID.Length - 1); var secondPage = new CheckOutPage(Meals, foodbankID, foodbankName, kitchenAddress, userSesh); await Navigation.PushAsync(secondPage); } }
async void Handle_Clicked(object sender, System.EventArgs e) { if (mealOrdersCount == 0) { await DisplayAlert("Order Error", "Please make an order to continue", "Continue"); } else { var secondPage = new CheckOutPage(Meals, foodbankID, kitchenZipcode); await Navigation.PushAsync(secondPage); } //var checkoutPage = new CheckOutPage(); //await Navigation.PushAsync(checkoutPage); }
// FUNCTION UPDATED BY CARLOS // THE VERSION ELSE STATEMENT WAS REMOVE FOR TESTING PURPOSES async void Handle_Clicked(object sender, System.EventArgs e) { //var isLatest = await CrossLatestVersion.Current.IsUsingLatestVersion(); if (mealOrdersCount == 0) { await DisplayAlert("Order Error", "Please make an order to continue", "Continue"); } //else if (!isLatest) //{ // await DisplayAlert("Update Required", "Please download the latest version of Serving Now from the app store", "Ok"); // await CrossLatestVersion.Current.OpenAppInStore(); //} //else //{ var secondPage = new CheckOutPage(Meals, kitchenID, kitchenZipcode, availableZipcode); await Navigation.PushAsync(secondPage); //} //var checkoutPage = new CheckOutPage(); //await Navigation.PushAsync(checkoutPage); }