/// <summary> /// Initializes stuff. Used instead of the constructor, as to be able to set which movie is clicked on etc /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void TicketBookingForm_Shown(object sender, EventArgs e) { movieNameLabel.Text = Movie.Name; moviePictureBox.Image = Image.FromFile(Movie.PicturePath); infoLabel.Text = Movie.Info; shows = handler.GetShowsForMovie(Movie); startTimeComboBox.Items.AddRange(new string[] { "20:00", "22:00", "00:00", "02:00" }); startTimeComboBox.SelectedIndex = CurrentStartTimeIndex; roomNumberTextBox.Text = shows[0].RoomNumber.ToString(); wheelchairTextBox.Text = shows[0].GotWheelchairRamp ? "Yes" : "No"; this.Text = $"{Movie.Name} ticket booker"; PopulateSeats(); }