Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["username"] == null)
            {
                Response.Redirect("Login.aspx");
            }

            LoadPlaceholders();
            if (ViewState["selected"] == null)
            {
                ViewState["selected"] = selected;
            }
            else
            {
                selected = ((List <String>)ViewState["selected"]);
            }

            rows         = "ABCDEFGHI".ToCharArray();
            screening_id = int.Parse(Request.QueryString["screening"]);
            screening    = Database.GetScreening(screening_id);
            seats        = Database.GetTakenSeatsForScreening(screening_id);
            taken        = CreateTakenList();
            movie        = screening.movie;
            SeatBuilder();
        }
Esempio n. 2
0
 partial void Deletescreening(screening instance);
Esempio n. 3
0
 partial void Updatescreening(screening instance);
Esempio n. 4
0
 partial void Insertscreening(screening instance);
Esempio n. 5
0
 private void detach_screenings(screening entity)
 {
     this.SendPropertyChanging();
     entity.movie = null;
 }
Esempio n. 6
0
 private void attach_screenings(screening entity)
 {
     this.SendPropertyChanging();
     entity.movie = this;
 }