示例#1
0
 public void Insert(int index, Overlap value)
 {
     if (index < Overlaps.Count)
     {
         Overlaps.Insert(index, value);
     }
     else
     {
         Overlaps.Add(value);
     }
 }
示例#2
0
        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);
            }
        }