private void InitializeFilters()
        {
            _filters = new Filters();
            var genreList = _model.GetGenreList();

            foreach (String item in genreList)
            {
                _filters.FilterGenre.AddFilterItem(new FilterItem(item, false));
            }
            var channelList = _model.GetChannelList();

            foreach (String item in channelList)
            {
                _filters.FilterChannel.AddFilterItem(new FilterItem(item, false));
            }
            SetFilterListAtView();
        }
        private void LoadGenres()
        {
            List <String> genreList = _model.GetGenreList();
            CheckBox      checkBox;

            foreach (var genre in genreList)
            {
                checkBox         = new CheckBox();
                checkBox.Content = genre;
                if (_TVSeriesExtended != null)
                {
                    foreach (var genreItem in _TVSeriesExtended.GenreList)
                    {
                        if (genre.Equals(genreItem))
                        {
                            checkBox.IsChecked = true;
                            break;
                        }
                    }
                }
                _view.Genre.Items.Add(checkBox);
            }
        }
Пример #3
0
 private void LoadGenresList()
 {
     ListViewGenres.ItemsSource = _model.GetGenreList();
 }