Пример #1
0
        public AdminPage()
        {
            InitializeComponent();
            _serials = new SerialMethods();

            serialList.ItemsSource = _serials.AllSerials;
        }
Пример #2
0
        public AddEpisodePage(SerialMethods serials, Serial serialToAddEpisode)
        {
            InitializeComponent();
            _serials            = serials;
            _serialToAddEpisode = serialToAddEpisode;

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

            _serials = new SerialMethods();

            searchList.ItemsSource = _serials.AllSerials;
            topList.ItemsSource    = _serials.GetTop100();
        }
Пример #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();
        }
Пример #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();
        }
Пример #6
0
 public AddSerialPage(SerialMethods serials)
 {
     InitializeComponent();
     _serials = serials;
 }