private void setMovieInContent(Movie movie)
 {
     comboBoxDays.SelectedItem = movie.getDay();
     comboBoxMonths.SelectedItem = movie.getMonth();
     comboBoxYears.SelectedItem = movie.getYear();
     comboBoxDays.Enabled = false;
     comboBoxMonths.Enabled = false;
     comboBoxYears.Enabled = false;
     textBox1.Text = movie.getTitle();
     textBox2.Text = movie.getDescription();
     textBox3.Text = movie.getAuthor();
     textBox4.Text = movie.getCategory();
     pictureBox1.Image = movie.getImage();
     pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
     textBox1.ReadOnly = true;
     textBox2.ReadOnly = true;
     textBox3.ReadOnly = true;
     textBox4.ReadOnly = true;
     loadImageButton.Enabled = false;
     saveButton.Enabled = false;
 }
Example #2
0
 private void gridScan(Movie movie, int i)
 {
     movieList.Add(movie);
     imageList1.Images.Add(movie.getImage());
     listView1.View = View.LargeIcon;
     imageList1.ImageSize = new Size(128, 163);
     listView1.LargeImageList = imageList1;
     ListViewItem listViewItem = new ListViewItem(movie.getTitle() + " — " + movie.getAuthor() + " (" + movie.getYear() + ")");
     listViewItem.ImageIndex = i;
     listView1.Items.Add(listViewItem);
 }