Exemple #1
0
        public main()
        {
            InitializeComponent();
            cb_genres.ItemsSource  = GenresList;
            cb_country.ItemsSource = CountriesList;
            for (int i = DateTime.Now.Year; i >= 1930; i--)
            {
                cb_year.Items.Add(i);
            }
            lb_movies.ItemsSource = listTest;

            hdkinoBrowser = new Services.HDKinoBrowser();
            tmdb          = new TMDBBrowser();
        }
        public main()
        {
            InitializeComponent();

            cb_site.SelectionChanged += Cb_site_SelectionChanged;
            Cb_site_SelectionChanged(null, null);

            GenresList             = Dictionaries.tvigleGenres.Select(t => t.Key).ToList();
            cb_genres.ItemsSource  = GenresList;
            cb_country.ItemsSource = Dictionaries.tvigleCountries.Select(t => t.Key).ToList();
            for (int i = DateTime.Now.Year; i >= 1930; i--)
            {
                cb_year.Items.Add(i);
            }
            // создание объектов браузеров
            tvigleBrowser = new TvigleBrowser();
            tmdb          = new TMDBBrowser();
        }