public void Insert(int index, Overlap value) { if (index < Overlaps.Count) { Overlaps.Insert(index, value); } else { Overlaps.Add(value); } }
public void Insert(int index, Point p) { var e = new Overlap(); e.X = (byte)p.X; e.Y = (byte)p.Y; if (index < Overlaps.Count) { Overlaps.Insert(index, e); } else { Overlaps.Add(e); } }