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;
 }
Example #2
0
        internal void RemoveFromPlaylistTracks(PlaylistTrack playlistTrack)
        {
#if DEBUG
            if (!playlistTracks.Remove(playlistTrack))
            {
                throw new Exception();
            }
#else
            playlistTracks.Remove(playlistTrack);
#endif
            onRemovedFromPlaylistTracks(playlistTrack);
        }
Example #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);
        }
Example #4
0
 partial void onRemovedFromPlaylistTracks(PlaylistTrack playlistTrack);
Example #5
0
 partial void onAddedToPlaylistTracks(PlaylistTrack playlistTrack);