示例#1
0
 public Lyric(string lyric)
 {
     startLyric = new LyricConverter(lyric).Get();
     if (string.IsNullOrWhiteSpace(startLyric))
     {
         startLyric = lyric;
         lyricType  = LyricType.Other;
     }
     this.lyric = startLyric;
 }
示例#2
0
        public Lyric(FileInfo file)
        {
            string lyric = new StreamReader(file.FullName).ReadToEnd();

            startLyric = new LyricConverter(lyric).Get();
            if (string.IsNullOrWhiteSpace(startLyric))
            {
                startLyric = lyric;
                lyricType  = LyricType.Other;
            }
            this.lyric = startLyric;
        }