Exemplo n.º 1
0
        private void submitMovieButton_Click(object sender, RoutedEventArgs e)
        {
            Movie submittedMovie = new Movie(TitleTextbox.Text, GenreTextBox.Text, Double.Parse(ReviewScoreTextBox.Text));

            movieList.Add(submittedMovie);

            //submittedMovie.Title = TitleTextbBox.Text;
            //submittedMovie.Genre = GenreTextBox.Text;
            // submittedMovie.ReviewScore = Convert.ToDouble(ReviewScoreTextBox.Text);
            //submittedMovie.ReviewScore = Double.Parse(ReviewScoreTextBox.Text);

            submittedMovie.DisplayInformation();

            TitleTextbox.Clear();
            GenreTextBox.Clear();
            ReviewScoreTextBox.Clear();
        }
        private void movieListView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Movie selectedMovie = movieListView.SelectedItem as Movie;

            selectedMovie.DisplayInformation();
        }