示例#1
0
        private void AddTrackFromSearchResult(DependencyObject originalSource, AddToPlaylistType addToPlaylistType)
        {
            Big3.Hitbase.DataBaseEngine.Track track = GetTrack(originalSource);

            if (track != null)
            {
                AddTrackToPlaylist(track.Soundfile, addToPlaylistType);
            }
        }
示例#2
0
        private void ImagePlayPreListen_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            Big3.Hitbase.DataBaseEngine.Track track = GetTrack((DependencyObject)e.OriginalSource);

            if (track != null)
            {
                MiniPlayerWindow.PreListen(track);
            }
        }
示例#3
0
        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);
             * }*/
        }
示例#4
0
        private void ImagePlayPreListen_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            Big3.Hitbase.DataBaseEngine.Track track = GetTrack(e.OriginalSource as DependencyObject);

            HitbaseCommands.PreListenTrack.Execute(track, this);
        }