Esempio n. 1
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";
     }
 }
 private void LoadAllLists()
 {
     Session["MovieList"]    = mDAO.GetMovieList();
     Session["ScheduleList"] = sDAO.GetScheduleFromNowOn();
     Session["RoomList"]     = rDAO.GetRoomList();
     Session["GenreList"]    = gDAO.GetGenreList();
 }