Ejemplo n.º 1
0
        private void movieComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.dateComboBox.Items.Clear();
            this.timeComboBox.Items.Clear();
            string movieName = GetMovieName(movieComboBox.Text);
            int    movieYear = GetMovieYear(movieComboBox.Text);

            string[] dates = ScreeningService.GetAllDatesForMovieInCinemaByNameAndYear(cinema.Town.Name, cinema.Name, movieName,
                                                                                       movieYear);
            dateComboBox.Items.AddRange(dates);
        }
Ejemplo n.º 2
0
        private void movieComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.dateComboBox.Items.Clear();
            this.timeComboBox.Items.Clear();
            this.typeComboBox.Items.Clear();
            this.seatComboBox.Items.Clear();
            string movieNameAndYear = this.movieComboBox.SelectedItem.ToString();
            string movieName        = GetMovieName(movieNameAndYear);
            int    movieYear        = GetMovieYear(movieNameAndYear);
            string cinemaName       = this.cinemaComboBox.SelectedItem.ToString();
            string townName         = this.townComboBox.SelectedItem.ToString();
            var    dates            = screeningService.GetAllDatesForMovieInCinemaByNameAndYear(townName, cinemaName, movieName, movieYear);

            this.dateComboBox.Items.AddRange(dates);
        }