示例#1
0
 private void RentSuggestionButton_click(object sender, EventArgs e)
 {
     Debug.Print("Recommended movies" + recommendedMovies.Count);
     if (recommendedMoviesIndex < recommendedMovies.Count)
     {
         Movie         movie     = recommendedMovies[recommendedMoviesIndex];
         MovieViewForm movieForm = new MovieViewForm(movie, this.user, false, this);
         movieForm.Show();
     }
 }
示例#2
0
        private void RateMovieButton_Click(object sender, EventArgs e)
        {
            if (indexRentedThisMonth >= pastRented.Count)
            {
                return;
            }

            Movie         movie     = pastRented[indexRentedThisMonth];
            MovieViewForm movieForm = new MovieViewForm(movie, this.user, true, this);

            movieForm.Show();
        }
示例#3
0
        private void RentButton_click(object sender, EventArgs e)
        {
            if (index >= movies.Count)
            {
                return;
            }

            Movie         selectedMovie = movies.ElementAt(index);
            MovieViewForm movieForm     = new MovieViewForm(selectedMovie, this.user, false, this);

            movieForm.Show();
        }