// rotates the selected cover art to the previous available cover public void PreviousCover() { if (AlternateCovers.Count <= 1) { return; } int index = AlternateCovers.IndexOf(CoverFullPath) - 1; if (index < 0) { index = AlternateCovers.Count - 1; } CoverFullPath = AlternateCovers[index]; commitNeeded = true; }
// rotates the selected cover art to the next available cover public void NextCover() { if (AlternateCovers.Count <= 1) { return; } int index = AlternateCovers.IndexOf(CoverFullPath) + 1; if (index >= AlternateCovers.Count) { index = 0; } CoverFullPath = AlternateCovers[index]; commitNeeded = true; }