Beispiel #1
0
        private void MoveDown()
        {
            int currentIndex = SoundCollection.IndexOf(SelectedSound);

            if (currentIndex < 1)
            {
                return;
            }

            SoundCollection.Move(currentIndex, currentIndex - 1);
        }
Beispiel #2
0
        private void MoveUp()
        {
            int currentIndex = SoundCollection.IndexOf(SelectedSound);
            int maxIndex     = SoundCollection.Count - 1;

            if (currentIndex == maxIndex)
            {
                return;
            }

            SoundCollection.Move(currentIndex, currentIndex + 1);
        }