Beispiel #1
0
 public AddReview(ReviewsDao reviewsDao, int movieId, MovieView parent)
 {
     _reviewsDao = reviewsDao;
     _movieId    = movieId;
     _parent     = parent;
     InitializeComponent();
 }
Beispiel #2
0
        private void filmsView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }
            var s         = moviesView.Rows[e.RowIndex];
            var id        = (int)s.Cells[0].Value;
            var movieView = new MovieView(id);

            movieView.Show();
        }
Beispiel #3
0
 private void cast_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex == -1)
     {
         return;
     }
     if (cast[e.ColumnIndex, e.RowIndex] is DataGridViewLinkCell)
     {
         var movieId   = (int)cast[2, e.RowIndex].Value;
         var movieView = new MovieView(movieId);
         movieView.Show();
         Close();
     }
 }