title: Remove a selected ListView item from an actual List
body: <p>I want to be able to remove an item from a List by selecting it from a ListView and hitting a button to delete it. This button would remove it from both the actual List and the Listview. What I currently have removes the item from the Listview, but does not remove the Movie object from the actual movieList List. The List is located in another class called MovieRentalSys (movieSystem.movieList). Using WinForms.</p>
  
  <pre><code>partial class MovieRentalSys
  {
      public List&lt;Movie&gt; movieList;
      public List&lt;Movie&gt; reservedMovieList;
      Movie movie;
  
      public MovieRentalSys()
      {
          movieList = new List&lt;Movie&gt;();
          reservedMovieList = new List&lt;Movie&gt;();
      }
  
      //Will take movie form text as arguments to create new movie in list
      public List&lt;Movie&gt; AddMovie(string newMovie, string newGenre, string newActor, string newYear)
      {
          movie = new Movie(newMovie, newGenre, newActor, newYear);
          movieList.Add(movie);
          return movieList;
      }
  
      public List&lt;Movie&gt; DeleteMovie(Movie movie)
      {
          //needs to be made
      }
  
      public List&lt;Movie&gt; ReserveMovie(Movie movie)
      {
          movieList.Remove(movie);
          reservedMovieList.Add(movie);
          return reservedMovieList;
      }
  }
  
  
  
  public partial class frmMovie : Form
  {
      MovieRentalSys movieSystem = new MovieRentalSys();
  
  
      public frmMovie()
      {
          InitializeComponent();
      }
  
      private void btnMovieBack_Click(object sender, EventArgs e)
      {
          this.Close();
      }
  
      private void btnAddMovie_Click(object sender, EventArgs e)
      {
          movieSystem.AddMovie(txtTitle.Text, txtGenre.Text, txtActor.Text, txtYear.Text);
          movieSystem.WriteMovieListToFile();
          ListViewItem movie = new ListViewItem(txtTitle.Text);
          movie.SubItems.Add(txtGenre.Text);
          movie.SubItems.Add(txtActor.Text);
          movie.SubItems.Add(txtYear.Text);
          lstMovies.Items.Add(movie);
      }
  
      private void btnDeleteMovie_Click(object sender, EventArgs e)
      {
          lstMovies.Items.Remove(lstMovies.Items[0]);
          //need method to remove movie from actual movieList
      }
  }
  </code></pre>
  
  <p>Anyone know how to do this with a method, specifically with a method that can be called in this button?</p>