public IList <Film> GetFilms() { if (m_films != null) { return(m_films); } return(m_films = m_provider.GetFilms()); }
private void FirstMovie_Click(object sender, EventArgs e) { List <String> characterNames = new List <String>(); var films = repo.GetFilms(); var characters = repo.GetCharacters(); Film film = films[0]; characterNames = getCharacterNames(film, characters); FilmForm f2 = new FilmForm(film.Title, film.Episode, film.Director, film.Producer, characterNames, film.ReleaseDate, FirstMovie.BackgroundImage); f2.ShowDialog(); }