public static void SetListBoxHotels(TextBox sender, ListBox lbDest)
        {
            List <ListItem> CatHotelsList = CatHotelsBL.GetHotels_Predictive(sender.Text);

            SetListBox(sender, lbDest, CatHotelsList);
        }
 /// <summary>
 /// Obtiene informacion de los segmentos de hotel
 /// </summary>
 /// <param name="i">indice del segmento en su respectiva list</param>
 private void BuildHotelInformation(int i)
 {
     try
     {
         string          dayOfWeek = string.Empty;
         List <ListItem> cityHotel = CatCitiesBL.GetCities(myObject.hotelList[i].hotelCityCode);
         List <ListItem> codeHotel = CatHotelsBL.GetHotels_Predictive(myObject.hotelList[i].chainCode);
         myObject.hotelList[i].hotelCityCode = cityHotel[0].Text.Substring(4, cityHotel[0].Text.Length - 4);
         myObject.hotelList[i].chainCode     = codeHotel[0].Text2;
         if (myObject.hotelList[i].startDate.DayOfWeek.ToString() == "Sunday")
         {
             dayOfWeek = "Domingo";
         }
         else if (myObject.hotelList[i].startDate.DayOfWeek.ToString() == "Monday")
         {
             dayOfWeek = "Lunes";
         }
         else if (myObject.hotelList[i].startDate.DayOfWeek.ToString() == "Tuesday")
         {
             dayOfWeek = "Martes";
         }
         else if (myObject.hotelList[i].startDate.DayOfWeek.ToString() == "Wednesday")
         {
             dayOfWeek = "Miercoles";
         }
         else if (myObject.hotelList[i].startDate.DayOfWeek.ToString() == "Thursday")
         {
             dayOfWeek = "Jueves";
         }
         else if (myObject.hotelList[i].startDate.DayOfWeek.ToString() == "Friday")
         {
             dayOfWeek = "Viernes";
         }
         else if (myObject.hotelList[i].startDate.DayOfWeek.ToString() == "Saturday")
         {
             dayOfWeek = "Sabado";
         }
         if (myObject.hotelList[i].startDate.ToString("dd-MMM-yyyy").ToUpper() != dateSegmnet)
         {
             informationDIX = string.Concat(informationDIX, "\n",
                                            myObject.hotelList[i].startDate.ToString("dd-MMM-yyyy").ToUpper(),
                                            "  -  ",
                                            dayOfWeek, "\n");
         }
         dateSegmnet    = myObject.hotelList[i].startDate.ToString("dd-MMM-yyyy").ToUpper();
         informationDIX = string.Concat(informationDIX,
                                        "  HOTEL   ", myObject.hotelList[i].hotelCityCode.PadRight(35, ' '),
                                        "SALIDA-",
                                        myObject.hotelList[i].endDate, "\n");
         informationDIX = string.Concat(informationDIX,
                                        "          ",
                                        myObject.hotelList[i].chainCode.PadRight(35, ' '),
                                        myObject.hotelList[i].duration,
                                        " NOCHES", "\n");
         informationDIX = string.Concat(informationDIX,
                                        "          ",
                                        myObject.hotelList[i].hotelName.PadRight(35, ' '),
                                        myObject.hotelList[i].roomNumbers,
                                        (Convert.ToInt32(myObject.hotelList[i].roomNumbers) > 1) ? " HABITACIONES" : " HABITACION", "\n");
         for (int j = 0; j < myObject.hotelList[i].address.Count; j++)
         {
             if (j == 0)
             {
                 informationDIX = string.Concat(informationDIX,
                                                "          ",
                                                myObject.hotelList[i].address[j].PadRight(35, ' '),
                                                myObject.hotelList[i].shortText, "\n");
             }
             else if (j == 1)
             {
                 informationDIX = string.Concat(informationDIX,
                                                "          ",
                                                myObject.hotelList[i].address[j].PadRight(35, ' '),
                                                "TARIFA-",
                                                (string.IsNullOrEmpty(myObject.hotelList[i].textAmount) ? myObject.hotelList[i].amount : myObject.hotelList[i].textAmount),
                                                (!string.IsNullOrEmpty(myObject.hotelList[i].correncyCode)) ? myObject.hotelList[i].correncyCode + " POR NOCHE" : " POR NOCHE", "\n");
             }
             else if (j == 2 && !string.IsNullOrEmpty(myObject.hotelList[i].daysBeforeCancel))
             {
                 informationDIX = string.Concat(informationDIX,
                                                "          ",
                                                myObject.hotelList[i].address[j].PadRight(35, ' '),
                                                "CANCELAR ",
                                                myObject.hotelList[i].daysBeforeCancel.Substring(0, 2),
                                                (myObject.hotelList[i].daysBeforeCancel.Substring(2, 1) == "H") ? " HORAS ANTES DE LA LLEGADA" : " DIAS ANTES DE LA LLEGADA", "\n");
             }
             else
             {
                 informationDIX = string.Concat(informationDIX,
                                                "          ",
                                                myObject.hotelList[i].address[j], "\n");
             }
         }
         if (myObject.hotelList[i].address.Count == 0)
         {
             informationDIX = string.Concat(informationDIX,
                                            "          ".PadRight(45, ' '),
                                            myObject.hotelList[i].shortText, "\n");
             informationDIX = string.Concat(informationDIX,
                                            "          ".PadRight(45, ' '),
                                            "TARIFA-",
                                            (string.IsNullOrEmpty(myObject.hotelList[i].textAmount) ? myObject.hotelList[i].amount : myObject.hotelList[i].textAmount),
                                            (!string.IsNullOrEmpty(myObject.hotelList[i].correncyCode)) ? myObject.hotelList[i].correncyCode + " POR NOCHE" : " POR NOCHE", "\n");
             if (!string.IsNullOrEmpty(myObject.hotelList[i].daysBeforeCancel))
             {
                 informationDIX = string.Concat(informationDIX,
                                                "          ".PadRight(45, ' '),
                                                "CANCELAR ",
                                                myObject.hotelList[i].daysBeforeCancel.Substring(0, 2),
                                                (myObject.hotelList[i].daysBeforeCancel.Substring(2, 1) == "H") ? " HORAS ANTES DE LA LLEGADA" : " DIAS ANTES DE LA LLEGADA", "\n");
             }
         }
         if (myObject.hotelList[i].address.Count == 1)
         {
             informationDIX = string.Concat(informationDIX,
                                            "          ".PadRight(45, ' '),
                                            "TARIFA-",
                                            (string.IsNullOrEmpty(myObject.hotelList[i].textAmount) ? myObject.hotelList[i].amount : myObject.hotelList[i].textAmount),
                                            (!string.IsNullOrEmpty(myObject.hotelList[i].correncyCode)) ? myObject.hotelList[i].correncyCode + " POR NOCHE" : " POR NOCHE", "\n");
             if (!string.IsNullOrEmpty(myObject.hotelList[i].daysBeforeCancel))
             {
                 informationDIX = string.Concat(informationDIX,
                                                "          ".PadRight(45, ' '),
                                                "CANCELAR ",
                                                myObject.hotelList[i].daysBeforeCancel.Substring(0, 2),
                                                (myObject.hotelList[i].daysBeforeCancel.Substring(2, 1) == "H") ? " HORAS ANTES DE LA LLEGADA" : " DIAS ANTES DE LA LLEGADA", "\n");
             }
         }
         if (myObject.hotelList[i].address.Count == 2 &&
             !string.IsNullOrEmpty(myObject.hotelList[i].daysBeforeCancel))
         {
             informationDIX = string.Concat(informationDIX,
                                            "          ".PadRight(45, ' '),
                                            "CANCELAR ",
                                            myObject.hotelList[i].daysBeforeCancel.Substring(0, 2),
                                            (myObject.hotelList[i].daysBeforeCancel.Substring(2, 1) == "H") ? " HORAS ANTES DE LA LLEGADA" : " DIAS ANTES DE LA LLEGADA", "\n");
         }
         if (!string.IsNullOrEmpty(myObject.hotelList[i].phone))
         {
             informationDIX = string.Concat(informationDIX,
                                            "          ",
                                            myObject.hotelList[i].phone, "\n");
         }
         if (!string.IsNullOrEmpty(myObject.hotelList[i].fax))
         {
             informationDIX = string.Concat(informationDIX,
                                            "          ",
                                            myObject.hotelList[i].fax, "\n");
         }
         informationDIX = string.Concat(informationDIX,
                                        "          LLEGADA GARANTIZADA", "\n");
         if (!string.IsNullOrEmpty(myObject.hotelList[i].confirmationNumber))
         {
             informationDIX = string.Concat(informationDIX,
                                            "          CONFIRMACION ",
                                            myObject.hotelList[i].confirmationNumber, "\n");
         }
         if (!string.IsNullOrEmpty(myObject.hotelList[i].specialPrefs))
         {
             informationDIX = string.Concat(informationDIX,
                                            "          ",
                                            myObject.hotelList[i].specialPrefs, "\n");
         }
     }
     catch
     {
         status = false;
     }
 }