示例#1
0
        private void _ListMyMusic_ItemMoving(object sender, EventHandlers.MoveItemArgs e)
        {
            int newIndex = e.Index + e.Direction;

            _CurrentMyMusicStage.BGMs.RemoveAt(e.Index);
            if (e.Direction == -1 && newIndex > e.Index)
            {
                newIndex--;
            }
            _CurrentMyMusicStage.BGMs.Insert(newIndex, (MyMusicStageBGM)e.ListEntry);
        }
示例#2
0
        private void _ListSoundDB_ItemMoving(object sender, EventHandlers.MoveItemArgs e)
        {
            if (_CurrentSoundDBStage == null)
            {
                return;
            }
            int newIndex = e.Index + e.Direction;

            _CurrentSoundDBStage.SoundEntries.RemoveAt(e.Index);
            if (e.Direction == -1 && newIndex > e.Index)
            {
                newIndex--;
            }
            _CurrentSoundDBStage.SoundEntries.Insert(newIndex, (SoundDBStageSoundEntry)e.ListEntry);
        }