Esempio n. 1
0
 private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AddMovie addMovie = new AddMovie(this);
     addMovie.Show();
 }
Esempio n. 2
0
 // La partie thèmes.
 private void listView1_ItemActivate(object sender, EventArgs e)
 {
     ListView list = (ListView)sender;
     Movie movie;
     try
     {
         movie = movieList[list.Items.IndexOf(list.SelectedItems[0])];
         AddMovie addMovie = new AddMovie(this, movie);
         addMovie.Show();
     }
     catch (ArgumentOutOfRangeException iobe)
     {
         movie = movieList[0];
         AddMovie addMovie = new AddMovie(this, movie);
         addMovie.Show();
     }
 }