コード例 #1
0
        /// <summary>
        /// http://objectlistview.sourceforge.net
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frmMovieList_Load(object sender, EventArgs e)
        {
            provider.Language            = TvixInfo.Language;
            provider.RunWorkerCompleted += new ProviderWorker.RunWorkerCompletedEventHandler(provider_RunWorkerCompleted);
            //provider.ObjectLoaded += new ProviderWorker.ObjectLoadedEventHandler(provider_MovieLoaded);

            provider.CoverChanged += new ProviderWorker.CoverChangedEventHandler(provider_CoverProcessChanged);
            //provider.FanartChanged += new ProviderWorker.FanartChangedEventHandler(provider_FanProcessChanged); ;
            provider.GetData(this.selectedMovie);
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: BGCX067/eztvix-svn-to-git
        private void getMovies(string search)
        {
            frmMovieList myMovieList = new frmMovieList();

            myMovieList.SearchString = search;
            if (myMovieList.ShowDialog() == DialogResult.OK)
            {
                if (myMovieList.selectedMovie.Posters.Count > 0)
                {
                    frmCoverList myCoverList = new frmCoverList();
                    myCoverList.selectedMovie = myMovieList.selectedMovie;
                    if (myCoverList.ShowDialog() == DialogResult.OK)
                    {
                        myCoverList.selectedMovie.SelectedCover = myCoverList.selectedCover;
                        if (TvixInfo.UseFanart)
                        {
                            frmFanartList myFanartList = new frmFanartList();
                            myFanartList.selectedMovie = myCoverList.selectedMovie;

                            if (myFanartList.ShowDialog() == DialogResult.OK)
                            {
                            }
                        }
                        UpdateMovieBackground(myCoverList.selectedMovie);
                    }
                    myCoverList.Dispose();
                }
                else
                {
                    MovieProvider provider = TvixInfo.MovieProvider;

                    provider.Language = TvixInfo.Language;

                    provider.GetData(myMovieList.selectedMovie);
                    myMovieList.selectedMovie.Cover = p_theme[ItemType.VideoCover].Background.Image;

                    p_theme[ItemType.VideoBox].Background.Image = myMovieList.selectedMovie.Cover;
                    p_theme.ApplyBackgroundVideo(myMovieList.selectedMovie, CurrentFolderPath);
                    if (TvixInfo.AutoRenameMovie)
                    {
                        RenameMovie(myMovieList.selectedMovie.Title);
                    }
                    coverPic.Image = p_theme[ItemType.VideoBox];
                    //BackgroundBigPic.Image
                    loadFolderPic(CurrentFolderPath);
                    loadBackgroundPic(CurrentFolderPath);
                    provider.Dispose();
                }
            }
            myMovieList.Dispose();
        }