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