Esempio n. 1
0
        private void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            ProgressBar pro = (ProgressBar)this.Tag;

            pro.Value = 5;
            Movie movie = (Movie)listBox1.SelectedItem;

            DbMethods.DbHasMovie(movie);
            pro.Value = 20;
            FormMovie form = new FormMovie();

            form.MdiParent = this.MdiParent;
            form._Movie    = movie;
            form.Tag       = pro;
            form.Show();
        }
Esempio n. 2
0
        private void ListBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            Movie       movie = (Movie)lstbxGenreMovies.SelectedItem;
            ProgressBar pro   = (ProgressBar)this.Tag;

            pro.Value = 5;
            DbMethods.DbHasMovie(movie);
            pro.Value = 15;
            FormMovie form = new FormMovie();

            form.MdiParent   = this.MdiParent;
            form.WindowState = FormWindowState.Maximized;
            form._Movie      = movie;
            pro.Value        = 20;
            form.Tag         = pro;
            form.Show();
        }