protected void Clear_Click(object sender, EventArgs e)
 {
     ClearShowTimeTicketsPanel();
     MoviePanel.Visible   = false;
     MovieList.DataSource = null;
     MovieList.DataBind();
     LocationList.SelectedIndex = -1;
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         LoadAllLists();
         Session["ScheduleList"] = sDAO.GetScheduleFromNowOn();
         MovieList.DataSource    = getMovieHaveSchedule((List <MovieDTO>)Session["MovieList"], (List <ScheduleDTO>)Session["ScheduleList"]);
         MovieList.DataBind();
         Session["CurrentPage"] = "MovieSchedulePage.aspx";
     }
 }
Esempio n. 3
0
        //GENRELIST DATA
        protected void GenreList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (GenreList.SelectedIndex == 0)
            {
                MovieList.DataSource = Drama;
            }
            if (GenreList.SelectedIndex == 1)
            {
                MovieList.DataSource = Comedy;
            }
            if (GenreList.SelectedIndex == 2)
            {
                MovieList.DataSource = Action;
            }

            MovieList.DataBind();
        }
 protected void LocationList_SelectedIndexChanged(object sender, EventArgs e)
 {
     ClearShowTimeTicketsPanel();
     MessageUserControl.TryRun(() =>
     {
         var sysmgr = new TicketsController();
         var movies = sysmgr.ShowTimes_MoviesByLocations(int.Parse(LocationList.SelectedValue));
         if (movies == null)
         {
             throw new Exception("No movies schedule at this location at this date.");
         }
         else
         {
             MovieList.DataSource     = movies;
             MovieList.DataTextField  = nameof(KeyValueOption <int> .DisplayText);
             MovieList.DataValueField = nameof(KeyValueOption <int> .DisplayValue);
             MovieList.DataBind();
             MoviePanel.Visible = true;
         }
     });
 }
Esempio n. 5
0
 private void llenado()
 {
     cdc = new ConexionLQDataContext();
     MovieList.DataSource = cdc.vPelicula.OrderBy(x => x.Nombre);
     MovieList.DataBind();
 }