Ejemplo n.º 1
0
 public void SetMovie1()
 {
     systemDB.SelectMovieTitle(cinemaMovieID[0]);
     label5.Text   = systemDB.GetMoviePrice().ToString();
     label7.Text   = systemDB.GetMovieTitle();
     button1.Image = systemDB.GetMovieImage();
     comboBox1.Items.Clear();
     comboBox1.Items.AddRange(systemDB.GetMovieSched());
     comboBox1.SelectedIndex = 0;
 }
Ejemplo n.º 2
0
        public void TransactReservation()
        {
            SetTransactionCode();
            systemDB.InsertTransaction((decimal)totalPrice, count, movies.mappingID, transactionCode);
            string output = String.Format("Movie Title: {0}" +
                                          "\nScreening Schedule: {1}" +
                                          "\nTotal Seats Reserved: {2}" +
                                          "\nSeats: {3}" +
                                          "\nTotal Price: P{4:F2}" +
                                          "\n\nTransaction Code: {5}",
                                          systemDB.GetMovieTitle(), systemDB.GetSched(movies.mappingID), count, GetSeats(), totalPrice, transactionCode);

            MessageBox.Show(output);
        }