예제 #1
0
 public int findMediaIndex(IMedia media)
 {
     return this._playlist.getPlayList().FindIndex(i => i == media);
 }
예제 #2
0
파일: Playlist.cs 프로젝트: Eygle/wmp
 public void add(IMedia item)
 {
     this._content.Add(item);
     this._size++;
     this._totalLength += item.LengthLong;
 }
예제 #3
0
파일: Playlist.cs 프로젝트: Eygle/wmp
 public void remove(IMedia item)
 {
     this._size--;
     this._totalLength -= item.LengthLong;
     this._content.Remove(item);
 }
예제 #4
0
 private void displayAudioElements(IMedia currentMedia)
 {
     musicTitle.Content = "Title:\t" + currentMedia.Title;
     musicSinger.Content = "Artist:\t" + currentMedia.Artist;
     musicAlbum.Content = "Album:\t" + currentMedia.Album;
     musicGenre.Content = "Genre:\t" + currentMedia.Genre;
     musicYear.Content = "Year:\t" + currentMedia.Year;
     GridMusicInfos.Visibility = System.Windows.Visibility.Visible;
 }