private void MoveDown() { int currentIndex = SoundCollection.IndexOf(SelectedSound); if (currentIndex < 1) { return; } SoundCollection.Move(currentIndex, currentIndex - 1); }
private void MoveUp() { int currentIndex = SoundCollection.IndexOf(SelectedSound); int maxIndex = SoundCollection.Count - 1; if (currentIndex == maxIndex) { return; } SoundCollection.Move(currentIndex, currentIndex + 1); }