Exemple #1
0
        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);
            }
        }
Exemple #2
0
 public void Insert(int index, T item)
 {
     pila.Insert(index, item);
 }