예제 #1
0
 public PlayList( string dirPath)
 {
     this.tracks = new List<Track>();
     DirectoryInfo dir = new DirectoryInfo(dirPath);
     if(dir.GetFiles().Length!=0)
     {
         foreach(var file in dir.GetFiles())
         {
             if(file.Extension == ".mp3")
             {
                 this.tracks.Add(new Track(file.FullName));
             }
         }
     }
     if(this.tracks.Count > 0)
     {
         this.currentTrack = this.tracks[0];
     }
 }
예제 #2
0
 public void Add(Track track)
 {
     tracks.Add(track);
 }
예제 #3
0
 public void Previus()
 {
     this.currentTrack = PreviusTrack;
 }
예제 #4
0
 public PlayList()
 {
     this.tracks = new List<Track>();
     this.currentTrack = new Track();
 }
예제 #5
0
 public void Next()
 {
     this.currentTrack = NextTrack;
 }