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); } }
public void MoveContentItem_UP(UPnPComplexType.ContentData c) { int index = this.ItemList.IndexOf(c); if (index >= 1) { this.ItemList.Reverse(index - 1, 2); } }
public void RemoveContentItem(UPnPComplexType.ContentData c) { c.Parent = null; this.ItemList.Remove(c); }
public void AddContentItem(UPnPComplexType.ContentData c) { c.Parent = this; this.ItemList.Add(c); }