public void AddFrame(Bitmap bmp, int delay = 500, int posicion = -1) { if (bmp == null || delay < 0) { throw new ArgumentException(); } KeyValuePair <Bitmap, int> frame = new KeyValuePair <Bitmap, int>(bmp, delay); if (posicion < 0 || posicion > frames.Count) { frames.Add(frame); } else { frames.Insert(posicion, frame); } }
public void Insert(int index, T item) { pila.Insert(index, item); }