internal void UpdateMixDiscProgressBar() { if (ProgressBarValue == ProgressBarMax) { var statusMessage = string.Empty; if (_mixDiscTracks.Count > 0) { var bestMixDisc = GetBestMixDiscTracks(); foreach (var track in bestMixDisc) { MixDiscCollection.Add(track); } statusMessage = string.Concat("A new Mix disc is found"); } else if (MixDiscCollection.Count == 0) { DisplayLongestTrackCombinationList(); statusMessage = string.Concat("No new Mix disc is found. The longest track combination is displayed"); } else { statusMessage = string.Concat("No new Mix disc is found"); } ProgressBarMessage = statusMessage; MessageBox.Show(string.Concat(statusMessage, ".")); } }
private void DisplayLongestTrackCombinationList() { if (MixDiscCollection.Count == 0) { foreach (var track in _longestTrackCombinationList) { MixDiscCollection.Add(track); } } }