async void performatListItemSelected(object sender, ItemTappedEventArgs e) { PerformaItemDetails performaItemDetails = (PerformaItemDetails)e.Item; string SelectedItemDetails = "StartDate :" + "" + performaItemDetails.startDate.ToString() + "\n" + "End Date :" + "" + performaItemDetails.endDate.ToString() + "\n" + "Description :" + "" + performaItemDetails.descriptiopn.ToString() + "\n" + "Room Type :" + "" + performaItemDetails.roomType.ToString() + "\n" + "Meal Plan :" + "" + performaItemDetails.mealPlan.ToString() + "\n" + "Occu :" + "" + performaItemDetails.occu.ToString() + "\n" + "Nos :" + "" + performaItemDetails.nos.ToString() + "\n" + "Room Nights :" + "" + performaItemDetails.roomNights.ToString() + "\n" + "Rate :" + "" + performaItemDetails.rate.ToString() + "\n" + "Currency :" + "" + performaItemDetails.currency.ToString() + "\n" + "Amount(LKR) :" + "" + performaItemDetails.amount.ToString() + "\n"; await DisplayAlert("Performa Items", SelectedItemDetails, Constants._buttonOkay); }
async void performaDetails(string reservationID) { PerformaDetails result = await performaInformaion.performaInfo(reservationID); //advancedValues BindingContext = result; if (result != null) { if (result.advancedReceivedNegative != "" || result.advancedReceivedPositive != "") { advancedValues.IsVisible = true; } else { advancedValues.IsVisible = false; } performaItemDetails.ItemsSource = null; var res = performaInformaion.performaItemInformation(); performaItemDetails.ItemsSource = res; PerformaItemDetails details = res.FirstOrDefault(); if (details != null) { roomTypeLabel.Text = details.roomType; mealPlanLabel.Text = details.mealPlan; occuLabel.Text = details.occu; nosLabel.Text = details.nos; roomNightsLabel.Text = details.roomNights; rateLabel.Text = details.rate; currLabel.Text = details.currency; } } PerformaIndicator.IsRunning = false; PerformaIndicator.IsVisible = false; PerformaLayout.IsVisible = true; }