Ejemplo n.º 1
0
        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (listBox1.SelectedIndex != -1)
            {
                curr          = listBox1.SelectedItem as SearchMovie;
                textBox1.Text = curr.title;
                curr.postaviPoster(pictureBox1, internet);
                details.Enabled = true;

                additionButtons();
            }
        }
Ejemplo n.º 2
0
        public Modal(SearchMovie movie, bool watchlistButton, bool watchedButton, bool internet)
        {
            InitializeComponent();
            MaximizeBox          = false;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;

            this.movie           = movie;
            this.watchlistButton = watchlistButton;
            this.watchedButton   = watchedButton;
            movie.postaviPoster(pictureBox1, internet);
            textBox1.Text  = movie.title;
            textBox2.Text  = movie.Runtime();
            textBox3.Text  = movie.Release();
            textBox4.Text  = movie.Genres();
            textBox5.Text  = movie.director;
            textBox6.Text  = movie.actors;
            textBox7.Text  = movie.language;
            textBox8.Text  = movie.Rating();
            textBox9.Text  = movie.plot;
            textBox10.Text = movie.awards;
            addWL.Enabled  = watchlistButton;
            addW.Enabled   = watchedButton;
            da             = new DAMovie();
        }