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(); }
partial void Deletescreening(screening instance);
partial void Updatescreening(screening instance);
partial void Insertscreening(screening instance);
private void detach_screenings(screening entity) { this.SendPropertyChanging(); entity.movie = null; }
private void attach_screenings(screening entity) { this.SendPropertyChanging(); entity.movie = this; }