private void AddRangeToList(GUIListControl listControl, List<GUIListItem> listItems) { listControl.Clear(); foreach (var item in listItems) { listControl.Add(item); } }
public void ListItem(GUIListControl _List, string _Label, string _Label2, string _DVDLabel, DateTime _CreationTime, long _Length, string _Name, string _Path, int _ItemId) { // Init Item GUIListItem Item = new GUIListItem(); // Set Item Information Item.Label = _Label; Item.Label2 = _Label2; Item.DVDLabel = _DVDLabel; Item.Path = _Path; Item.ItemId = _ItemId; // Set File Information Item.FileInfo = new MediaPortal.Util.FileInformation(); Item.FileInfo.CreationTime = _CreationTime; Item.FileInfo.Length = _Length; Item.FileInfo.Name = _Name; // Add Item to List _List.Add(Item); }