Ejemplo n.º 1
0
        //Clear Main Window and Load Movie Page
        public void LoadMoviePage(int movieId)
        {
            this.MainPanel.Controls.Clear(); //Clear Panel
            MoviePage moviePage = new MoviePage(movieId)
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            this.MainPanel.Controls.Add(moviePage);
            moviePage.Show();
        }
Ejemplo n.º 2
0
 private void pictureBox4_Click(object sender, EventArgs e)
 {
     if (star1_filled && star2_filled && star3_filled && star4_filled)
     {
         MessageBox.Show("Successfuly Rated with: 10");
         pictureBox1.Image = IMBD_adopse.Properties.Resources.star_24px;
         pictureBox2.Image = IMBD_adopse.Properties.Resources.star_24px;
         pictureBox3.Image = IMBD_adopse.Properties.Resources.star_24px;
         pictureBox4.Image = IMBD_adopse.Properties.Resources.star_24px;
         pictureBox5.Image = IMBD_adopse.Properties.Resources.star_24px;
         star1_filled      = false;
         star2_filled      = false;
         star3_filled      = false;
         star4_filled      = false;
         star5_filled      = false;
         rating            = 10;
         userRating rate = new userRating();
         if (rate.setRating(MainWindowForm.getUserID(), MoviePage.getMovieId(), rating))
         {
             obj_main.movieRating.Enabled = false;
             obj_main.checkUser();
         }
     }
 }