public AdminPage() { InitializeComponent(); _serials = new SerialMethods(); serialList.ItemsSource = _serials.AllSerials; }
public AddEpisodePage(SerialMethods serials, Serial serialToAddEpisode) { InitializeComponent(); _serials = serials; _serialToAddEpisode = serialToAddEpisode; titleLabel.Text = $"Добавление серии для сериала \"{serialToAddEpisode.Name}\""; }
public GuestPage() { InitializeComponent(); _serials = new SerialMethods(); searchList.ItemsSource = _serials.AllSerials; topList.ItemsSource = _serials.GetTop100(); }
public EditEpisodePage(SerialMethods serials, Episode episode) { InitializeComponent(); _serials = serials; _episodeToEdit = episode; titleLabel.Text += $" \"{episode.Name}\""; txtName.Text = episode.Name; txtDescription.Text = episode.Description; txtSeason.Text = episode.SeasonNumber.ToString(); }
public EditSerialPage(SerialMethods serials, Serial serial) { InitializeComponent(); _serials = serials; _serialToEdit = serial; titleLabel.Text += $" \"{_serialToEdit.Name}\""; txtName.Text = _serialToEdit.Name; txtDescription.Text = _serialToEdit.Description; txtGenres.Text = _serialToEdit.Genres; txtRating.Text = _serialToEdit.Rating.ToString(); }
public AddSerialPage(SerialMethods serials) { InitializeComponent(); _serials = serials; }