예제 #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.resetEventHandler();
            provider.RunWorkerCompleted += new ProviderWorker.RunWorkerCompletedEventHandler(provider_FanRunWorkerCompleted);
            provider.ObjectLoaded       += new ProviderWorker.ObjectLoadedEventHandler(provider_FanMovieLoaded);
            provider.FanartChanged      += new ProviderWorker.FanartChangedEventHandler(provider_FanProcessChanged);;
            provider.GetPictureData(this.selectedMovie);

            //foreach (KeyValuePair<String, MoviePicture> kvp in selectedMovie.FanArts)
            //{
            //    //                this.imageListViewFanart.Items.Add("Dummy.Key", kvp.Key, kvp.Value.Thumb, selectedMovie);
            //    this.imageListViewFanart.Items.Add("Dummy.Key", kvp.Key, kvp.Value.Thumb, kvp.Value);
            //}

            ImageListViewRenderers.FanartRenderer renderer = new ImageListViewRenderers.FanartRenderer();
            imageListViewFanart.SetRenderer(renderer);
        }