//remark details public void DisplayRemarkDetails(RemarkDetails remarkResult) { //mainRemark.Text = remarkResult.MainRemark; //generalRemark.Text = remarkResult.SubRemark; //if (remarkResult.MainRemark == "" && (remarkResult.SubRemark == "" || remarkResult.SubRemark == null)) //{ // remarksUnavailabilityIndicator.IsVisible = true; //} //else { // //Main Remark not Available // if (remarkResult.MainRemark == "") // { // mainRemarkName.IsVisible = false; // remarksGrid.IsVisible = true; // mainRemark.IsVisible = false; // } // //Sub Remark not Available // if (remarkResult.SubRemark == "" || remarkResult.SubRemark == null) // { // generalRemarkName.IsVisible = false; // remarksGrid.IsVisible = true; // generalRemark.IsVisible = false; // } // else { // mainRemarkName.IsVisible = true; // generalRemarkName.IsVisible = true; // remarksGrid.IsVisible = true; // mainRemark.IsVisible = true; // generalRemark.IsVisible = true; // } //} }
public async void RemarkDetails() { MainGuestInformation mainGuestInformation = new MainGuestInformation(); var resRemList = await GetResRemarksList(); remarksList = resRemList; RemarkDetails remarkDetails = await mainGuestInformation.remarkInformation(); ReservationIDText.Text = Constants._reservation_id; ClientNameText.Text = Constants._clientName; if (string.IsNullOrEmpty(remarkDetails.MainRemark)) { //remarksUnavailabilityIndicator.IsVisible = true; } else { remarksList.Insert(0, new RemarksModel("", "", "", Constants._hotel_code, Constants._reservation_id, "Main", remarkDetails.MainRemark, "")); } if (resRemList.Count <= 0) { remarksUnavailabilityIndicator.IsVisible = true; AddNreRemark.HorizontalOptions = LayoutOptions.Center; AddNreRemark.VerticalOptions = LayoutOptions.Center; } RemarkDetailsListView.ItemsSource = remarksList; stopLoading(); }
async void getRemarksDetails() { RemarkDetails remarkResult = await mainGuestInformation.remarkInformation(); if (remarkResult != null) { DisplayRemarkDetails(remarkResult); } }