Пример #1
0
        private void ResetRating()
        {
            if (current_source != null)
            {
                int rating = 0;

                // If there is only one track, get the preset rating
                if (current_source.TrackModel.Selection.Count == 1)
                {
                    foreach (TrackInfo track in current_source.TrackModel.SelectedItems)
                    {
                        rating = track.Rating;
                    }
                }
                rating_proxy.Reset(rating);
            }
        }
Пример #2
0
        private void ResetRating()
        {
            if (current_source != null)
            {
                int rating = 0;

                // If there is only one track, get the preset rating
                if (Selection.Count == 1)
                {
                    foreach (TrackInfo track in SelectedTracks)
                    {
                        rating = track.Rating;
                    }
                }
                selected_tracks_rating_proxy.Reset(rating);

                var playing_track = ServiceManager.PlayerEngine.CurrentTrack as TrackInfo;
                if (playing_track != null)
                {
                    rating = playing_track.Rating;
                    playing_track_rating_proxy.Reset(rating);
                }
            }
        }