コード例 #1
0
        private void UpdateButtonState()
        {
            // update layout button label
            GUIControl.SetControlLabel(GetID, layoutButton.GetID, GUICommon.GetLayoutTranslation(CurrentLayout));

            // update sortby button label
            if (sortButton != null)
            {
                sortButton.Label       = GUICommon.GetSortByString(TraktSettings.SortByPopularMovies);
                sortButton.IsAscending = (TraktSettings.SortByPopularMovies.Direction == SortingDirections.Ascending);
            }
            GUIUtils.SetProperty("#Trakt.SortBy", GUICommon.GetSortByString(TraktSettings.SortByPopularMovies));

            // update filter buttons
            if (filterWatchedButton != null)
            {
                filterWatchedButton.Selected = TraktSettings.PopularMoviesHideWatched;
            }
            if (filterWatchListedButton != null)
            {
                filterWatchListedButton.Selected = TraktSettings.PopularMoviesHideWatchlisted;
            }
            if (filterCollectedButton != null)
            {
                filterCollectedButton.Selected = TraktSettings.PopularMoviesHideCollected;
            }
            if (filterRatedButton != null)
            {
                filterRatedButton.Selected = TraktSettings.PopularMoviesHideRated;
            }
        }
コード例 #2
0
 private void UpdateButtonState()
 {
     // update sortby button label
     if (sortButton != null)
     {
         sortButton.Label       = GUICommon.GetSortByString(TraktSettings.SortByRecommendedShows);
         sortButton.IsAscending = (TraktSettings.SortByRecommendedShows.Direction == SortingDirections.Ascending);
     }
     GUIUtils.SetProperty("#Trakt.SortBy", GUICommon.GetSortByString(TraktSettings.SortByRecommendedShows));
 }
コード例 #3
0
        private void UpdateButtonState()
        {
            // update layout button label
            GUIControl.SetControlLabel(GetID, layoutButton.GetID, GUICommon.GetLayoutTranslation(CurrentLayout));

            // update sortby button label
            if (sortButton != null)
            {
                sortButton.Label       = GUICommon.GetSortByString(TraktSettings.SortByWatchListMovies);
                sortButton.IsAscending = (TraktSettings.SortByWatchListMovies.Direction == SortingDirections.Ascending);
            }
            GUIUtils.SetProperty("#Trakt.SortBy", GUICommon.GetSortByString(TraktSettings.SortByWatchListMovies));
        }