Esempio n. 1
0
        private void OnItemSelected(GUIListItem item, GUIControl parent)
        {
            if (item.Label == "..")
            {
                IMDBMovie notMovie = new IMDBMovie();
                notMovie.SetProperties(true, string.Empty);
                IMDBActor notActor = new IMDBActor();
                notActor.SetProperties();
                return;
            }
            IMDBMovie movie = item.AlbumInfoTag as IMDBMovie;

            if (movie == null)
            {
                movie = new IMDBMovie();
            }

            ArrayList files = new ArrayList();

            VideoDatabase.GetFilesForMovie(movie.ID, ref files);

            if (files.Count > 0)
            {
                movie.SetProperties(false, (string)files[0]);
            }
            else
            {
                movie.SetProperties(false, string.Empty);
            }

            if (movie.ID >= 0)
            {
                string titleExt      = movie.Title + "{" + movie.ID + "}";
                string coverArtImage = Util.Utils.GetLargeCoverArtName(Thumbs.MovieTitle, titleExt);

                if (Util.Utils.FileExistsInCache(coverArtImage))
                {
                    facadeLayout.FilmstripLayout.InfoImageFileName = coverArtImage;
                }
            }
        }
Esempio n. 2
0
        protected override void OnPageLoad()
        {
            base.OnPageLoad();
            _forceRefreshAll = false;

            if (_currentActor == null)
            {
                if (GUIWindowManager.HasPreviousWindow())
                {
                    GUIWindowManager.ShowPreviousWindow();
                }
                else
                {
                    GUIWindowManager.CloseCurrentWindow();
                }
                return;
            }

            //_internalGrabber.LoadScript();
            _currentActor.SetProperties();
            string biography = _currentActor.Biography;

            if (biography == string.Empty || biography == Strings.Unknown)
            {
                biography = "";
                _viewmode = ViewMode.Movies;
            }
            else
            {
                _viewmode = ViewMode.Biography;
            }

            if (listActorMovies != null && listActorMovies.Count == 0)
            {
                SetNewproperties();
            }
            else
            {
                SetOldProperties();
            }
        }