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; } }
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)); }
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)); }