TraktPlugin.GUI.GUINetwork.OnActivityTypeSelected C# (CSharp) Метод

OnActivityTypeSelected() приватный Метод

private OnActivityTypeSelected ( GUIListItem item, GUIControl parent ) : void
item MediaPortal.GUI.Library.GUIListItem
parent MediaPortal.GUI.Library.GUIControl
Результат void
        private void OnActivityTypeSelected(GUIListItem item, GUIControl parent)
        {
            if (item.Label == Translation.UserProfile)
                SelectedActivity = ActivityType.UserProfile;
            else if (item.Label == Translation.RecentWatchedEpisodes)
                SelectedActivity = ActivityType.RecentWatchedEpisodes;
            else if (item.Label == Translation.RecentWatchedMovies)
                SelectedActivity = ActivityType.RecentWatchedMovies;
            else if (item.Label == Translation.RecentAddedEpisodes)
                SelectedActivity = ActivityType.RecentAddedEpisodes;
            else if (item.Label == Translation.RecentAddedMovies)
                SelectedActivity = ActivityType.RecentAddedMovies;
            else if (item.Label == Translation.RecentComments)
                SelectedActivity = ActivityType.RecentComments;
            else if (item.Label == Translation.WatchListMovies)
                SelectedActivity = ActivityType.MovieWatchList;
            else if (item.Label == Translation.WatchListShows)
                SelectedActivity = ActivityType.ShowWatchList;
            else if (item.Label == Translation.WatchListEpisodes)
                SelectedActivity = ActivityType.EpisodeWatchList;
            else if (item.Label == Translation.Lists)
                SelectedActivity = ActivityType.Lists;

            PublishUserSkinProperties(CurrentSelectedUser);
            PreviousActivityTypeSelectedIndex = Facade.SelectedListItemIndex;
        }