Exemple #1
0
        public int Compare(TraktShowWatchList showX, TraktShowWatchList showY)
        {
            if (_sortField == SortingFields.WatchListInserted)
            {
                int rtn = showX.ListedAt.FromISO8601().CompareTo(showY.ListedAt.FromISO8601());
                if (_sortDirection == SortingDirections.Descending)
                {
                    rtn = -rtn;
                }

                return(rtn);
            }

            return(Compare(showX.Show as TraktShowSummary, showY.Show as TraktShowSummary));
        }
 private void PublishWatchlistSkinProperties(TraktShowWatchList item)
 {
     GUICommon.SetProperty("#Trakt.Show.WatchList.Inserted", item.ListedAt.FromISO8601().ToShortDateString());
     GUICommon.SetShowProperties(item.Show);
 }