Beispiel #1
0
        public AdminPage()
        {
            InitializeComponent();
            _serials = new SerialMethods();

            serialList.ItemsSource = _serials.AllSerials;
        }
Beispiel #2
0
        public AddEpisodePage(SerialMethods serials, Serial serialToAddEpisode)
        {
            InitializeComponent();
            _serials            = serials;
            _serialToAddEpisode = serialToAddEpisode;

            titleLabel.Text = $"Добавление серии для сериала \"{serialToAddEpisode.Name}\"";
        }
Beispiel #3
0
        public GuestPage()
        {
            InitializeComponent();

            _serials = new SerialMethods();

            searchList.ItemsSource = _serials.AllSerials;
            topList.ItemsSource    = _serials.GetTop100();
        }
Beispiel #4
0
        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();
        }
Beispiel #5
0
        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;
 }