public void DoPrevious() { if (IsShuffleOn) { ShuffledIndex = ShuffledMedia.IndexOf(CurrentMedia) - 1; } else { Index = Medias.IndexOf(CurrentMedia) - 1; } }
/// <summary> /// Commands /// </summary> public void DoNext() { if (IsShuffleOn) { ShuffledIndex = ShuffledMedia.IndexOf(CurrentMedia) + 1; //Index = Medias.IndexOf(CurrentMedia); } else { Index = Medias.IndexOf(CurrentMedia) + 1; } }