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; }
private void reservations_Load(object sender, EventArgs e) { foreach (Control crtl in this.Controls) { if (crtl is CheckBox) { ((CheckBox)crtl).Appearance = Appearance.Button; } } systemDB.SelectMovieTitle(movies.cinemaMovieID[movies.cmID]); button1.Image = systemDB.GetMovieImage(); button1.Enabled = true; // CheckReserved(); //default value for textbox tboxChange.Text = Convert.ToString("0.00"); tboxTotalAmount.Text = Convert.ToString("0.00"); tboxPayAmount.Text = Convert.ToString("0.00"); /* assign value from previous movies */ lblMoviePrice.Text = movies.price; lblShowing.Text = movies.time; lblTitle.Text = movies.title; lblCinema.Text = movies.cinema; lblSeatCount.Text = movies.seat; price = double.Parse(movies.price); totalSeatCount = Int32.Parse(movies.seat); seatCount(count, totalPrice); }