/// <summary> /// Loads combo box with CINES data. /// </summary> private void PoblarCines() { if (log.IsDebugEnabled) { log.Debug("PoblarCines Starts"); } Cine daoMovie = new Cine(); List <CineDto> movieList = daoMovie.getCines(); List <KeyValue> l = new List <KeyValue>(); l.Add(new KeyValue() { key = "-1", value = "-- SELECCIONE --" }); movieList.ForEach(t => l.Add(new KeyValue() { key = t.idCine.ToString(), value = t.nombreCine })); listaCines.DataSource = l; listaCines.DataTextField = "value"; listaCines.DataValueField = "key"; listaCines.DataBind(); if (log.IsDebugEnabled) { log.Debug("PoblarCines Ends"); } }