private void ItemSelected(object sender, SelectedItemChangedEventArgs args) { var itemText = (string)args.SelectedItem; var tripDisplay = new FavouriteTripDisplay(NavPage, Map, Utility.InBraces(itemText)); NavPage.PushAsync(tripDisplay.Content); }
private void ItemSelected(object sender, SelectedItemChangedEventArgs args) { var itemText = (string)args.SelectedItem; if (itemText == AddMessage) { FavouriteContent content = new FavouriteContent(NavPage, Map); NavPage.PushAsync(content.Content); } else { FavouriteTripDisplay subcontent = new FavouriteTripDisplay(NavPage, Map, Utility.InBraces(itemText)); NavPage.PushAsync(subcontent.Content); } }