AdvancedListView(SerializationInfo info, StreamingContext context) { //items = new AdvancedListViewItemCollection(info,context); items = (AdvancedListViewItemCollection)info.GetValue("Items"); itemColor = (Color)info.GetValue("ItemColor"); itemSize = (Size)info.GetValue("ItemSize"); }
public Image[] GetAllImages(AdvancedListViewItemCollection items) { List <Image> ret = new List <Image>(); items.ForEach((obj) => ret.Add(obj.Image)); return(ret.ToArray()); }
protected void DrawItems(Graphics g) { drawBounds = new Rectangle(new Point(), itemSize); if (Items == null) { Items = new AdvancedListViewItemCollection(); } foreach (var item in Items) { DrawItem(item, g); } }