Ejemplo n.º 1
0
            public void MoveContentItem_DOWN(UPnPComplexType.ContentData c)
            {
                int index = this.ItemList.IndexOf(c);

                if ((index >= 0) && ((index + 1) <= this.ItemList.Count))
                {
                    this.ItemList.Reverse(index, 2);
                }
            }
Ejemplo n.º 2
0
            public void MoveContentItem_UP(UPnPComplexType.ContentData c)
            {
                int index = this.ItemList.IndexOf(c);

                if (index >= 1)
                {
                    this.ItemList.Reverse(index - 1, 2);
                }
            }
Ejemplo n.º 3
0
 public void RemoveContentItem(UPnPComplexType.ContentData c)
 {
     c.Parent = null;
     this.ItemList.Remove(c);
 }
Ejemplo n.º 4
0
 public void AddContentItem(UPnPComplexType.ContentData c)
 {
     c.Parent = this;
     this.ItemList.Add(c);
 }