Exemple #1
0
 public Lyric(string lyric)
 {
     startLyric = new LyricConverter(lyric).Get();
     if (string.IsNullOrWhiteSpace(startLyric))
     {
         startLyric = lyric;
         lyricType  = LyricType.Other;
     }
     this.lyric = startLyric;
 }
Exemple #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;
        }