private void AddTrackFromSearchResult(DependencyObject originalSource, AddToPlaylistType addToPlaylistType) { Big3.Hitbase.DataBaseEngine.Track track = GetTrack(originalSource); if (track != null) { AddTrackToPlaylist(track.Soundfile, addToPlaylistType); } }
private void ImagePlayPreListen_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { Big3.Hitbase.DataBaseEngine.Track track = GetTrack((DependencyObject)e.OriginalSource); if (track != null) { MiniPlayerWindow.PreListen(track); } }
private void AddTrackFromSearchResult(DependencyObject originalSource, AddTracksToPlaylistType addToPlaylistType) { Big3.Hitbase.DataBaseEngine.Track track = GetTrack(originalSource); List <int> trackIds = new List <int>(); trackIds.Add(track.ID); HitbaseCommands.AddTracksToPlaylist.Execute( new AddTracksToPlaylistParameter() { TrackIds = trackIds, AddTracksType = addToPlaylistType }, this); /*if (track != null) * { * AddTracksToPlaylist(new string[] { track.Soundfile }, addToPlaylistType); * }*/ }
private void ImagePlayPreListen_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { Big3.Hitbase.DataBaseEngine.Track track = GetTrack(e.OriginalSource as DependencyObject); HitbaseCommands.PreListenTrack.Execute(track, this); }