public TrackRow(ref int trackNo, PlaylistTrack playlistTrack, Action?dataChanged, bool isAdditionalTrack) :
     base(ref trackNo, playlistTrack.Track, dataChanged)
 {
     PlaylistTrack      = playlistTrack;
     IsAdditionalTrack  = isAdditionalTrack;
     RowBackground      = isAdditionalTrack ? highlightedBackgroundBrush : Brushes.White;
     PlaylistTrackNoOld = PlaylistTrackNo = playlistTrack.TrackNo;
 }
Ejemplo n.º 2
0
        internal void RemoveFromPlaylistTracks(PlaylistTrack playlistTrack)
        {
#if DEBUG
            if (!playlistTracks.Remove(playlistTrack))
            {
                throw new Exception();
            }
#else
            playlistTracks.Remove(playlistTrack);
#endif
            onRemovedFromPlaylistTracks(playlistTrack);
        }
Ejemplo n.º 3
0
        internal void AddToPlaylistTracks(PlaylistTrack playlistTrack)
        {
#if DEBUG
            if (playlistTrack == PlaylistTrack.NoPlaylistTrack)
            {
                throw new Exception();
            }
            if ((playlistTrack.Key >= 0) && (Key < 0))
            {
                throw new Exception();
            }
            if (playlistTracks.Contains(playlistTrack))
            {
                throw new Exception();
            }
#endif
            playlistTracks.Add(playlistTrack);
            onAddedToPlaylistTracks(playlistTrack);
        }
Ejemplo n.º 4
0
 partial void onRemovedFromPlaylistTracks(PlaylistTrack playlistTrack);
Ejemplo n.º 5
0
 partial void onAddedToPlaylistTracks(PlaylistTrack playlistTrack);