Exemple #1
0
        private void CancelBookingChildForm_Load(object sender, EventArgs e)
        {
            customer = CancelBookingForm.customer;
            movie    = festivalHandler.GetTickets(customer);
            theater  = festivalHandler.GetSpecificTheater(customer);

            pictureBoxSelectedMovie.Image = Image.FromFile(movie.PicturePath);

            label1.Text = $"Name: {customer.FirstName} {customer.LastName}";
            label2.Text = $"You have: {customer.Tickets.Count} tickets";
            label3.Text = $"Phone Number: {customer.PhoneNumber}";
            label4.Text = $"Movie: {movie.Name}";
            label5.Text = $"Movie start time:\n{theater.StartTime}";
            label6.Text = $"Press delete if you want to cancel your tickets.";
        }
        private void ChangeBookingChildForm_Load(object sender, EventArgs e)
        {
            customer = ChangeBookingForm.customer;
            movie    = festivalHandler.GetTickets(customer);
            theater  = festivalHandler.GetSpecificTheater(customer);

            pictureBoxSelectedMovie.Image = Image.FromFile(movie.PicturePath);

            label1.Text = $"Name: {customer.FirstName} {customer.LastName}";
            label2.Text = $"You have: {customer.Tickets.Count} tickets";
            label3.Text = $"Phone Number: {customer.PhoneNumber}";
            label4.Text = $"Movie: {movie.Name}";
            label5.Text = $"Tickets left: {theater.SeatsLeft}\nPlus your : {customer.Tickets.Count} tickets";
            label6.Text = $"How many tickets, in total, do you want?";
            label7.Text = $"Movie start time:\n{theater.StartTime}";
        }