Beispiel #1
0
        public View(eDefaultViewType viewType) : this()
        {
            switch (viewType)
            {
            case eDefaultViewType.All:
                Name = "All";
                break;

            case eDefaultViewType.Faves:
                Name             = "Favorites";
                ShowTypeFavorite = eShowType.show;
                break;

            case eDefaultViewType.FavesUnwatched:
                Name             = "Unwatched Favorites";
                ShowTypeFavorite = eShowType.show;
                ShowTypeWatched  = eShowType.hide;
                break;

            case eDefaultViewType.CompleteSeries:
                Name = "Complete Series";
                ShowTypeCompleted = eShowType.show;
                break;

            case eDefaultViewType.NewSeason:
                Name = "New Season";
                ShowTypeNewSeason = eShowType.show;
                break;

            case eDefaultViewType.LastWatched:
                Name = "Last Watched";
                ShowTypeRecentlyWatched = eShowType.show;
                ShowTypeWatched         = eShowType.hide;
                SortType = eSortType.WatchedDate;
                break;

            case eDefaultViewType.MissingEps:
                Name = "Missing Episodes";
                ShowTypeMissingEpisodes = eShowType.show;
                break;

            case eDefaultViewType.BluRay:
                Name           = "Blu-Ray";
                ShowTypeBluRay = eShowType.show;
                break;

            case eDefaultViewType.DVD:
                Name        = "DVD";
                ShowTypeDVD = eShowType.show;
                break;
            }
        }
Beispiel #2
0
 public View(eDefaultViewType viewType)
     : this()
 {
     switch (viewType)
     {
         case eDefaultViewType.All:
             Name = "All";
             break;
         case eDefaultViewType.Faves:
             Name = "Favorites";
             ShowTypeFavorite = eShowType.show;
             break;
         case eDefaultViewType.FavesUnwatched:
             Name = "Unwatched Favorites";
             ShowTypeFavorite = eShowType.show;
             ShowTypeWatched = eShowType.hide;
             break;
         case eDefaultViewType.CompleteSeries:
             Name = "Complete Series";
             ShowTypeCompleted = eShowType.show;
             break;
         case eDefaultViewType.NewSeason:
             Name = "New Season";
             ShowTypeNewSeason = eShowType.show;
             break;
         case eDefaultViewType.LastWatched:
             Name = "Last Watched";
             ShowTypeRecentlyWatched = eShowType.show;
             ShowTypeWatched = eShowType.hide;
             SortType = eSortType.WatchedDate;
             break;
         case eDefaultViewType.MissingEps:
             Name = "Missing Episodes";
             ShowTypeMissingEpisodes = eShowType.show;
             break;
         case eDefaultViewType.BluRay:
             Name = "Blu-Ray";
             ShowTypeBluRay = eShowType.show;
             break;
         case eDefaultViewType.DVD:
             Name = "DVD";
             ShowTypeDVD = eShowType.show;
             break;
     }
 }