private void button2_Click(object sender, EventArgs e) { film p = new film(); new_film f = new new_film(p); if (f.ShowDialog() != DialogResult.OK) { return; } film.ListaFilmów.Add(p); }
public new_film(film nowy_film) { InitializeComponent(); this.nowy_film = nowy_film; }