예제 #1
0
        public PlaylistEventArgs(List<SongTag> playlist, List<SongTag> playlistchanges, Status status, SongTag currentsong)
        {
            this.playlist = playlist;
            this.playlistchanges = playlistchanges;
            this.status = status;
            this.currentsong = currentsong;

        }
예제 #2
0
파일: SongTag.cs 프로젝트: opengd/Chimney
        public static async Task<SongTag> GetSongTagFromFile(StorageFile storageFile)
        {
            SongTag songTag = new SongTag();
            Windows.Storage.FileProperties.MusicProperties mp = await storageFile.Properties.GetMusicPropertiesAsync();
            //songTag.file = seekpath.Item2 + "/" + file.Name;
            songTag.Title = mp.Title;
            songTag.Artist = mp.Artist;
            songTag.Album = mp.Album;
            songTag.AlbumArtist = mp.AlbumArtist;
            songTag.Date = mp.Year.ToString();
            songTag.Time = Convert.ToInt32(mp.Duration.TotalSeconds);
            if (mp.Genre.Count > 0) songTag.Genre = mp.Genre.First<string>();

            return songTag;
        }
예제 #3
0
 public PlayerEventArgs(SongTag currentsong, Status status)
 {
     this.currentsong = currentsong;
     this.status = status;
 }