Beispiel #1
0
        private void PublishMovieSkinProperties(TraktMovieAnticipated anticipatedItem)
        {
            GUICommon.SetProperty("#Trakt.Movie.ListCount", anticipatedItem.ListCount.ToString());
            GUICommon.SetProperty("#Trakt.Movie.ListCount.Extra", string.Format(Translation.AppearsInList, anticipatedItem.ListCount));

            GUICommon.SetMovieProperties(anticipatedItem.Movie);
        }
Beispiel #2
0
        public int Compare(TraktMovieAnticipated movieX, TraktMovieAnticipated movieY)
        {
            if (_sortField == SortingFields.Anticipated)
            {
                int rtn = movieX.ListCount.CompareTo(movieY.ListCount);
                if (_sortDirection == SortingDirections.Descending)
                {
                    rtn = -rtn;
                }

                return(rtn);
            }

            return(Compare(movieX.Movie, movieY.Movie));
        }