RaumfeldNET.UPNPMediaList.moveItem C# (CSharp) Метод

moveItem() публичный Метод

public moveItem ( Int32 _itemIndex, Int32 _itemIndexTo ) : void
_itemIndex System.Int32
_itemIndexTo System.Int32
Результат void
        public virtual void moveItem(Int32 _itemIndex, Int32 _itemIndexTo)
        {
            MediaItem mediaItemMoveing;
            Boolean isQueueCreated;

            //if there is no queue the create a queue (do this with sync method!)
            isQueueCreated = this.createQueue();

            mediaItemMoveing = list.ElementAt(_itemIndex);
            contentDirectory.MoveInQueue(mediaItemMoveing.objectId, Convert.ToUInt32(_itemIndexTo), null, moveItemSink);

            if (isQueueCreated)
            {
                if (queueCreated != null) queueCreated(listId);
            }

            // rebuild of internal list will be done when retrieven the new information from renderer.
            // this may lead to a little "slow" playlist, but it will always be accurate!
        }