Esempio n. 1
0
        public static string ToRecString(this ProgramGenre genre)
        {
            switch (genre)
            {
            case ProgramGenre.News: return("ニュース・報道");

            case ProgramGenre.Sports: return("スポーツ");

            case ProgramGenre.Drama: return("ドラマ");

            case ProgramGenre.Music: return("音楽");

            case ProgramGenre.Variety: return("バラエティー");

            case ProgramGenre.Movie: return("映画");

            case ProgramGenre.Anime: return("アニメ・特撮");

            case ProgramGenre.Infomation: return("情報・ワイドショー");

            case ProgramGenre.Documantry: return("ドキュメンタリー");

            case ProgramGenre.Live: return("劇場・公演");

            case ProgramGenre.Education: return("趣味・教育");

            default: return("その他");
            }
        }
Esempio n. 2
0
 public StreamFile(SerializationInfo info, StreamingContext context)
 {
     FilePath       = (string)info.GetValue("FilePath", typeof(string));
     Genre          = (ProgramGenre)info.GetValue("Genre", typeof(ProgramGenre));
     Title          = (string)info.GetValue("Title", typeof(string));
     recTitle       = (string)info.GetValue("rTitle", typeof(string));
     recSubTitle    = (string)info.GetValue("rSubTitle", typeof(string));
     ChannelName    = (string)info.GetValue("ChannelName", typeof(string));
     Content        = (string)info.GetValue("Content", typeof(string));
     Infomation     = (string)info.GetValue("Infomation", typeof(string));
     StartTime      = (DateTime)info.GetValue("StartTime", typeof(DateTime));
     EndTime        = (DateTime)info.GetValue("EndTime", typeof(DateTime));
     ID             = (Guid)info.GetValue("ID", typeof(Guid));
     recKeyWord     = (string)info.GetValue("rKeyword", typeof(string));
     recKeywordInfo = (string)info.GetValue("rKWInfo", typeof(string));
 }
Esempio n. 3
0
        public string GetFolderTag(ProgramGenre ge)
        {
            string myResult = string.Empty;

            switch (ge)
            {
            case ProgramGenre.Drama:
            {
                myResult = FolderTag_Drama;
                break;
            }

            case ProgramGenre.Anime:
            {
                myResult = FolderTag_Anime;
                break;
            }

            case ProgramGenre.Variety:
            {
                myResult = FolderTag_Variety;
                break;
            }

            case ProgramGenre.Movie:
            {
                myResult = FolderTag_Movie;
                break;
            }

            case ProgramGenre.Documantry:
            {
                myResult = FolderTag_Docum;
                break;
            }

            case ProgramGenre.Live:
            {
                myResult = FolderTag_Live;
                break;
            }

            case ProgramGenre.News:
            {
                myResult = FolderTag_News;
                break;
            }

            case ProgramGenre.Sports:
            {
                myResult = FolderTag_Sports;
                break;
            }

            case ProgramGenre.Education:
            {
                myResult = FolderTag_Edu;
                break;
            }

            case ProgramGenre.Music:
            {
                myResult = FolderTag_Music;
                break;
            }

            case ProgramGenre.Infomation:
            {
                myResult = FolderTag_Info;
                break;
            }

            default:
            {
                myResult = FolderTag_Other;
                break;
            }
            }
            if (string.IsNullOrWhiteSpace(myResult))
            {
                return(AllowStoreOnBaseFolderIfTagIsNull ? myResult : string.IsNullOrWhiteSpace(FolderTag_Other) ? "その他番組" : FolderTag_Other);
            }
            else
            {
                return(myResult);
            }
        }