public int findMediaIndex(IMedia media) { return this._playlist.getPlayList().FindIndex(i => i == media); }
public void add(IMedia item) { this._content.Add(item); this._size++; this._totalLength += item.LengthLong; }
public void remove(IMedia item) { this._size--; this._totalLength -= item.LengthLong; this._content.Remove(item); }
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; }