//根据歌曲,获取歌词 private List <Lynic> GetLynicBySong(Song s) { string lynicFile1 = IOPath.Combine(IOPath.GetDirectoryName(s.Location), IOPath.GetFileNameWithoutExtension(s.Location) + ".lrc"); string lynicFile2 = IOPath.Combine(IOPath.GetDirectoryName(s.Location), "Lynic", IOPath.GetFileNameWithoutExtension(s.Location) + ".lrc"); if (File.Exists(lynicFile1)) { return(EntityService.GetLynics(lynicFile1)); } else if (File.Exists(lynicFile2)) { return(EntityService.GetLynics(lynicFile2)); } else { return(null); } }