void UpdateFilmList() { cbFilms.Items.Clear(); foreach (var film in films.GetFilms()) { cbFilms.Items.Add(film); } }
public void Init(Films films) { this.films = films; dgFilms.Rows.Clear(); foreach (var film in films.GetFilms()) { AddFilmRow(film); } }
public void Init(Seance seance, Rooms rooms, Films films) { this.seance = seance; this.rooms = rooms; this.films = films; tbDate.Value = seance.Date; tbPrice.Text = seance.Price.ToString(); tbTime.Text = seance.Time; cbRooms.DataSource = rooms.GetList(); cbFilms.DataSource = films.GetFilms(); if (seance.Room != null) { cbRooms.SelectedItem = seance.Room; } if (seance.Film != null) { cbFilms.SelectedItem = seance.Film; } }